Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am trying to transform "Top" reference plane in metric curtain wall panel family template. The default value of plane origin is (0,0,4000) (units are millimeters) my goal is to change this value according user input.
this code snippet gives me an error that FreeEnd vector is not perpendicular to normal vector which is (0,0,-1).
XYZ hBubbleEnd = new XYZ(refPlane.BubbleEnd.X, refPlane.BubbleEnd.Y, 2000/304.8));
refPlane.BubbleEnd = hBubbleEnd;
RvtDoc.revdoc.Regenerate();
XYZ hfreeEnd = new XYZ(0, 0, 2000/304.8);
planeEl.FreeEnd = hfreeEnd; this snippet moves the reference plane in my desired height, however it moves it's origin in y value also.
XYZ hBubbleEnd = new XYZ(refPlane.BubbleEnd.X, refPlane.BubbleEnd.Y, 2000/304.8)); refPlane.BubbleEnd = hBubbleEnd; RvtDoc.revdoc.Regenerate(); XYZ hfreeEnd = new XYZ(0, refPlane.FreeEnd.Y, 2000/304.8)); planeEl.FreeEnd = hfreeEnd;
any suggestions how to move reference plane only in z axis?
Solved! Go to Solution.