Hello. I have some trouble with NewFamilyInstance() method.
Pleas watch a short videio about what my plagin do and my problem.
I use this overload:
NewFamilyInstance(DB.XYZ location, DB.FamilySymbol symbol, DB.XYZ referenceDirection, DB.Element host, StructuralType structuralType)
where point i calculate via wall XYZ points.
The main problem in offset from level - its not equal 0. If i try placement symbol via hand - its okay and offset equal 0.
All familys placement is FamilyPlacementType.OneLevelBased.
I cant use another overload of NewFamilyInstance() method.
Please help, how to set offset 0 when the addon use NewFamilyInstance() method.