<?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 Re: Rotate FamilySymbol on Face of Wall in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/8242425#M51426</link>
    <description>&lt;P&gt;Hi V&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found myself with the same problem.&lt;/P&gt;&lt;P&gt;As you i was just using&amp;nbsp;&lt;SPAN&gt;ElementTransformUtils.RotateElement(doc, item.Id, axis, Math.PI) to rotate 180.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems to me&amp;nbsp;ElementTransformUtils&amp;nbsp;doesnt rotate&amp;nbsp;if you havent&amp;nbsp;set the Schedule Level parameter.&lt;BR /&gt;(Im inside the family editor here so your code would be a little different.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter parameter = instance.get_Parameter(BuiltInParameter.INSTANCE_SCHEDULE_ONLY_LEVEL_PARAM);&lt;BR /&gt;FilteredElementCollector cLevel = new FilteredElementCollector(familyDoc)&lt;BR /&gt;.OfClass(typeof(Level));&lt;/P&gt;&lt;P&gt;//always one here&lt;BR /&gt;if (parameter != null)&lt;BR /&gt;{&lt;BR /&gt;parameter.Set(cLevel.FirstElementId());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit strange&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 21:34:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-03T21:34:57Z</dc:date>
    <item>
      <title>Rotate FamilySymbol on Face of Wall</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/7878595#M51425</link>
      <description>&lt;P&gt;Hi, when i place my FamilySymbol on wall face is placed upside down, i'm using : FamilyInstance instance = doc.Create.NewFamilyInstance(face, location, refDir, famsym.First()); to rotate my wrong placed FamilySymbol i'm using: LocationPoint lp = item.Location as LocationPoint; XYZ ppt = new XYZ(lp.Point.X, lp.Point.Y, lp.Point.Z); Line axis = Line.CreateBound(ppt, new XYZ(ppt.X, ppt.Y, ppt.Z + 10)); ElementTransformUtils.RotateElement(doc, item.Id, axis, (Math.PI / 180) * -180); in this case my FamilySymbol placed correctly, but shifts. if i'm using: LocationPoint lp = item.Location as LocationPoint; XYZ ppt = new XYZ(lp.Point.X, lp.Point.Y, lp.Point.Z); Line axis = Line.CreateBound(new XYZ(ppt.X, ppt.Y, ppt.Z - 10), new XYZ(ppt.X, ppt.Y, ppt.Z + 10)); ElementTransformUtils.RotateElement(doc, item.Id, axis, (Math.PI / 180) * -180); there is an error about the inability to rotate What i'm doing wrong? Please help&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:14:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/7878595#M51425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T13:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate FamilySymbol on Face of Wall</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/8242425#M51426</link>
      <description>&lt;P&gt;Hi V&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found myself with the same problem.&lt;/P&gt;&lt;P&gt;As you i was just using&amp;nbsp;&lt;SPAN&gt;ElementTransformUtils.RotateElement(doc, item.Id, axis, Math.PI) to rotate 180.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems to me&amp;nbsp;ElementTransformUtils&amp;nbsp;doesnt rotate&amp;nbsp;if you havent&amp;nbsp;set the Schedule Level parameter.&lt;BR /&gt;(Im inside the family editor here so your code would be a little different.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter parameter = instance.get_Parameter(BuiltInParameter.INSTANCE_SCHEDULE_ONLY_LEVEL_PARAM);&lt;BR /&gt;FilteredElementCollector cLevel = new FilteredElementCollector(familyDoc)&lt;BR /&gt;.OfClass(typeof(Level));&lt;/P&gt;&lt;P&gt;//always one here&lt;BR /&gt;if (parameter != null)&lt;BR /&gt;{&lt;BR /&gt;parameter.Set(cLevel.FirstElementId());&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit strange&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 21:34:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/8242425#M51426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-03T21:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate FamilySymbol on Face of Wall</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/8243566#M51427</link>
      <description>&lt;P&gt;You are trying to rotate with a vertical axis. If the instance is placed on a vertical wall face, the axis should be the normal of the face.&lt;/P&gt;&lt;P&gt;I think this can also work:&lt;/P&gt;&lt;PRE&gt;Line axis = Line.CreateBound(  ppt, ppt.Add(  instance.GetTransform().BasisZ));&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 12:32:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/rotate-familysymbol-on-face-of-wall/m-p/8243566#M51427</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2018-09-04T12:32:59Z</dc:date>
    </item>
  </channel>
</rss>

