Message 1 of 4
Not applicable
12-13-2017
03:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am creating a ViewScetion from a bounding Box, I used the below code to get a transform working, however I would like the section orientation to be at 90 degrees to what it is at the moment. Currently the view section cut is ok, it cuts in plan and the view section marker is visible however i'd like it rotated in plan view by pi/2.
cheers,
This is how i get the view direction currently!
//TRANSFORM - set
Transform trans = Transform.Identity;
//ORIGIN - set
XYZ farPt = boundbox.Max;
trans.Origin = farPt;
//VIEW DIRECTION
trans.BasisX = -XYZ.BasisX;
trans.BasisY = XYZ.BasisZ;
trans.BasisZ = XYZ.BasisY;
sectionbox.Transform = trans;
Solved! Go to Solution.