- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 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: 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?
new_pad = doc.Create.NewFamilyInstance(equipment_element.Location.Point, concrete_pad_standard, doc.GetElement(equipment_element.LevelId), StructuralType.NonStructural )
Solved! Go to Solution.