- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have models with Grids having off-axis warnings. Snooping the Grid.Lines shows direction vectors that are microscopically off horizontal/vertical. I have been unsuccessful in changing the XYZ .Direction (read only). Just to prove I tried unsuccessfully, even if it is daft:
// get the current grid location LocationCurve location = grid.Location as LocationCurve; // get the points XYZ pt1 = location.Curve.GetEndPoint(0); XYZ pt2 = location.Curve.GetEndPoint(1); // make x values equal pt2 = pt2.Add(new XYZ(pt1.X, pt2.Y, pt2.Z)); // create a new LineBound //Line line = createApp.NewLineBound( // 2013 Line newGridLine = Line.CreateBound(pt1, pt2); // update the grid curve location.Curve = newGridLine;
This was a Building Coder comment from 4 years ago:
Hello Jeremy,
This is the closest snippet of a conversation I could find related to modifying existing Grids.
I am trying to modify a Grid line by changing the underlying curve (line or arc) or setting the grid to a newly defined curve. Is this even possible?
-Nate
Dear Nate,
Sorry, currently that does not seem possible. I added a note of your request to the existing wish list item SPR #151715 [API functionality request: to change Grid's start/end point coordinates via API].
Cheers, Jeremy
So, is it now possible to adjust the direction vector, or the start/end points to resolve the off-axis error?
______________
Yes, I'm Satoshi.
Solved! Go to Solution.