Jump to content

Recommended Posts

I wrote a script that creates a grid of rectangles (to be a column grid) based on points a set distance away from each other within a polyline boundary. How can I rotate the grid so that rather than the rectangles being rotated relative to the world XY, the GRID is rotated to align with the polyline (i.e., the grid's rotation is the same as the polyline, so the rectangles are rotated 0deg relative to the polyline). Part 1 is the script as it stands and Part 2 is the script when it's run.

Part 1.JPG

Part 2.JPG

Share this post


Link to post

This may not be the most elegant solution, but I would rotate the poly to be orthogonal, create the grid, then rotate it back. Here is an example.

 

Forum question.vwx

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...