<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Move tag to host location point. in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4440217#M78701</link>
    <description>Im trying to move a tag to the host location point. Can anyone show me what the syntax is to do this? I already have 'tag' and 'hostLocation' assigned. I've tried this but get an error: tag.Location = new LocationPoint(hostLocation.Point);</description>
    <pubDate>Thu, 19 Sep 2013 16:53:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-19T16:53:14Z</dc:date>
    <item>
      <title>Move tag to host location point.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4440217#M78701</link>
      <description>Im trying to move a tag to the host location point. Can anyone show me what the syntax is to do this? I already have 'tag' and 'hostLocation' assigned. I've tried this but get an error: tag.Location = new LocationPoint(hostLocation.Point);</description>
      <pubDate>Thu, 19 Sep 2013 16:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4440217#M78701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-19T16:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Move tag to host location point.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4461607#M78702</link>
      <description>&lt;P&gt;You could try using the ElementTransformUtils.MoveElement or the Location.Move method instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 07:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4461607#M78702</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2013-09-27T07:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Move tag to host location point.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4463339#M78703</link>
      <description>&lt;P&gt;Jeremy is right, you need to use the&amp;nbsp;&lt;SPAN&gt;Location.Move method. The trick though is knowing how far to move it as the tag's Location property can not be cast to either LocationPoint or LocationLine. You instead need to use the point returned by the&amp;nbsp;TagHeadPosition property for the location of the tag.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you can then do something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;tag.Location.Move(hostLocation - tag.TagHeadPosition)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 12:25:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/move-tag-to-host-location-point/m-p/4463339#M78703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-27T12:25:48Z</dc:date>
    </item>
  </channel>
</rss>

