Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 67020

Problem wirh NewFamilyInstance() method - uncorrect offset from level

$
0
0

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)

FamilyInstance instance = doc.Create.NewFamilyInstance(point, symbol_for_open, direction, level, StructuralType.NonStructural);

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.

 

2020-08-13_16-32-50.jpg2020-08-13_16-34-09.jpg

 

 

 


Viewing all articles
Browse latest Browse all 67020


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>