Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I’m creating a LISP that needs to be able extract two points (using the world coordinate) from a dynamic block that will be used as the 2 points for aligning a viewport using the “ZOOM” “WINDOW” command.
The insertion point is easy to get by creating an attribute that uses the blocks position as its value. The second point has been more tricky. I am able to set up an attribute that displays the coordinates of second point but it is in relation to insertion point of the block instead of the world coordinate position. When the block is not rotated this works just fine but I want to allow the user rotate the block and my routine to still know the coordinates for the opposite corners of the block.
Hopefully explained my situation adequately.
The insertion point is easy to get by creating an attribute that uses the blocks position as its value. The second point has been more tricky. I am able to set up an attribute that displays the coordinates of second point but it is in relation to insertion point of the block instead of the world coordinate position. When the block is not rotated this works just fine but I want to allow the user rotate the block and my routine to still know the coordinates for the opposite corners of the block.
Hopefully explained my situation adequately.
Solved! Go to Solution.