- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some questions about the orientation of family instances. What I am trying to accomplish is to export an image of a family instance. For this I let the user select a family instance in the project. After that I create a new isometric 3D View, isolate that family instance and try to set the the isometric view relative to the orientation of that family. If I have non-hosted families this works fine. I can determine the rotation of the family instance (get locationpoint and from there the rotation). Something like (VB.NET)
Dim ElemPos As Location = FamInstance.Location Dim ObjectLocationPoint As LocationPoint = TryCast(ElemPos, LocationPoint) Dim ObjectRotation As Double = ObjectLocationPoint.Rotation
When I have the rotation I can orient the view accordingly (setorientation).
ViewAngle = 135 + ObjectRotation * (180 / Math.PI)
However I have difficulty to get the orientation/rotation of the family instance when they are wall/face based families.
How can I find the rotation of the family instance when it is a hosted element
Hereunder a sketch of what I am trying to do. Grey are non-hosted element green the (face/wall) based elements.
The isometric 3D View should display something like
Louis
Please mention Revit version, especially when uploading Revit files.
Solved! Go to Solution.