Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I just want to place an air terminal using the doc.Create.NewFamilyInstance. I provide a XYZ location, familySymbol and level and the element gets created. But it ends up in 0,0,0 and not in the provided position.
If I try to manually set the location after the element has been created it ends up in the position but x2(!!).
What am I doing wrong here?
using (Transaction trans = new Transaction(Doc, "Place Air Terminal"))
{
trans.Start();
FamilyInstance airTerminalInstance = Doc.Create.NewFamilyInstance(location, airTerminalSymbol, level, StructuralType.NonStructural);
LocationPoint locationPoint = airTerminalInstance.Location as LocationPoint;
// since the location ends up in 0,0,0 I try to change it manually,
// but this doesn't work either... the locationPoint.Point ends up to be
// the provided point x2!
locationPoint.Point = location;
trans.Commit();
}
Thanks!
Solved! Go to Solution.