Message 1 of 3
Change FamilyInstance Orientation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have a code creating walls based on some constraints.
I am trying to add structural steel columns in each wall (in predefined margins) such that per each wall all added columns will be at the same orientation as the wall itself.
For instance (in red a single column sketched in the correct orientation as of the hosting wall):
I am using this line of code for adding a single FamilyInstance in my wall:
FamilyInstance fi = doc.Create.NewFamilyInstance(geomLine.GetEndPoint(0), firstColumn, firstLevel, Autodesk.Revit.DB.Structure.StructuralType.Column);
I tried to change the column orientation using fi.GetTransform().BasisX and set its value but to no avail.
Any suggestions how can this be achieved?