<?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 Transformation rules for familyinstance in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/transformation-rules-for-familyinstance/m-p/7283255#M56781</link>
    <description>&lt;P&gt;I am trying to transform a familyinstance. It either does not respond at all to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ElementTransformUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.RotateElement&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ElementTransformUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.MoveElement&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;or responds illogically. When I apply the abovementioned methods to an adaptive instance obtained from, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;AdaptiveComponentInstanceUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.CreateAdaptiveComponentInstance&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;everything reacts logically. However in the case of a familyinstance, it seems that other rules apply. Which methods can I use to obtain Rotation and Translation of a familyinstance? Should I use &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;fi.Location.Rotate&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;fi.Location.Move&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;instead?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;dirk&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Aug 2017 07:30:55 GMT</pubDate>
    <dc:creator>dirk.neethling</dc:creator>
    <dc:date>2017-08-08T07:30:55Z</dc:date>
    <item>
      <title>Transformation rules for familyinstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transformation-rules-for-familyinstance/m-p/7283255#M56781</link>
      <description>&lt;P&gt;I am trying to transform a familyinstance. It either does not respond at all to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ElementTransformUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.RotateElement&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ElementTransformUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.MoveElement&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;or responds illogically. When I apply the abovementioned methods to an adaptive instance obtained from, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;AdaptiveComponentInstanceUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.CreateAdaptiveComponentInstance&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;everything reacts logically. However in the case of a familyinstance, it seems that other rules apply. Which methods can I use to obtain Rotation and Translation of a familyinstance? Should I use &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;fi.Location.Rotate&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;fi.Location.Move&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;instead?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;dirk&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 07:30:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transformation-rules-for-familyinstance/m-p/7283255#M56781</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2017-08-08T07:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Transformation rules for familyinstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/transformation-rules-for-familyinstance/m-p/7286526#M56782</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ElementTransformUtils&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.MoveElement&lt;/FONT&gt;&amp;nbsp; is use to displace a element from one location to another location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use this&amp;nbsp; as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1st :&amp;nbsp;&amp;nbsp; Lp = FamilyInstance Location Point.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You want to move at new Point that is newPosition;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;after that do it like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; XYZ newposition=new XYZ(1,1,1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;XYZ oldPosition=Lp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; XYZ MovePosition=null;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; MovePosition= newposition- oldPosition&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ElementTransformUtils.MoveElement(Doc, Elemnetid, MovePosition)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i hope this will work fine.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 09:11:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/transformation-rules-for-familyinstance/m-p/7286526#M56782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T09:11:25Z</dc:date>
    </item>
  </channel>
</rss>

