<?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: NewFamilyInstance doubling the offset from level? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090905#M19787</link>
    <description>&lt;P&gt;Found a similar thread. Same issue, same workaround:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/document-create-newfamilyinstance-places-element-with-wrong-z/m-p/9601107" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-api-forum/document-create-newfamilyinstance-places-element-with-wrong-z/m-p/9601107&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 15:58:14 GMT</pubDate>
    <dc:creator>PerryLackowski</dc:creator>
    <dc:date>2022-04-07T15:58:14Z</dc:date>
    <item>
      <title>NewFamilyInstance doubling the offset from level?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090548#M19785</link>
      <description>&lt;P&gt;I'm trying to place an instance of a concrete equipment pad family at the same location as my equipment, then raise the equipment by the height of the pad. I had success using&amp;nbsp;NewFamilyInstance(XYZ, FamilySymbol, StructuralType). However, this particular overload doesn't assign my new pad to the same level as the equipment. I looked through the overloads for NewFamilyInstance and found this one:&amp;nbsp;NewFamilyInstance Method (XYZ, FamilySymbol, Level, StructuralType). Unfortunately, when I insert the new pad using the location and level of the original equipment, the new pad appears to be adding the Z elevation to the level elevation, so the pad appears at double the elevation of the equipment. What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;new_pad = doc.Create.NewFamilyInstance(equipment_element.Location.Point, concrete_pad_standard, doc.GetElement(equipment_element.LevelId), StructuralType.NonStructural )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:11:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090548#M19785</guid>
      <dc:creator>PerryLackowski</dc:creator>
      <dc:date>2022-04-07T14:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: NewFamilyInstance doubling the offset from level?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090676#M19786</link>
      <description>&lt;P&gt;While I still think the NewFamilyInstance command is bugged, I found a workaround. Rather than using the location of the equipment as the XYZ argument, I first modified it so the Z component is the equipment's Elevation from Level. This effectively subtracts the Level's elevation from the Z component, since the NewFamilyInstance command is adding it back in when it sets the level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;el = equipment_element.Location.Point
new_pad_location = XYZ(el.X, el.Y, equipment_element.get_Parameter(BuiltInParameter.INSTANCE_ELEVATION_PARAM).AsDouble())
new_pad = doc.Create.NewFamilyInstance(new_pad_location, concrete_pad_standard, doc.GetElement(equipment_element.LevelId), StructuralType.NonStructural )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:48:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090676#M19786</guid>
      <dc:creator>PerryLackowski</dc:creator>
      <dc:date>2022-04-07T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: NewFamilyInstance doubling the offset from level?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090905#M19787</link>
      <description>&lt;P&gt;Found a similar thread. Same issue, same workaround:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/document-create-newfamilyinstance-places-element-with-wrong-z/m-p/9601107" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-api-forum/document-create-newfamilyinstance-places-element-with-wrong-z/m-p/9601107&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:58:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/newfamilyinstance-doubling-the-offset-from-level/m-p/11090905#M19787</guid>
      <dc:creator>PerryLackowski</dc:creator>
      <dc:date>2022-04-07T15:58:14Z</dc:date>
    </item>
  </channel>
</rss>

