Hi everyone !
I'm developping a plugin for Revit and i use view3D.GetOrientation() which is very usefull to get the upDirection and forwardDirection vectors. Unfortunatly this method works only with a view3D. Is there a method to get similar vector when the currend view is a 2D view ? For example i'm working on South Elevation view and i want the method to return
XYZ upDirection = new XYZ(0, 0, 1);
XYZ forwardDirection = new XYZ(0, 1, 0);
I could get every cases using a very huge Use Case but it would never fit every situatiuons.
Any hints ?
Thanks!
Solved! Go to Solution.
Solved by Revitalizer. Go to Solution.
Hi,
see View.UpDirection, View.ViewDirection, View.RightDirection and its View.Origin properties for the view's orientation.
Revitalizer
Hey ! Thanks a lot. Unfortunatly i can get but i can't set these properties as they are Read-Only, do you know a way to set them ?
Hi,
you could try to set the Transform property of the View's BoundingBox.
I tink that will not function with arbitrary values since each view type has its limitations (ViewPlans alsways with XYZ.BasisZ Viewdirection etc.).
Revitalizer
Can't find what you're looking for? Ask the community or share your knowledge.