trans from paper to get world model space

trans from paper to get world model space

kpennell
Collaborator Collaborator
782 Views
2 Replies
Message 1 of 3

trans from paper to get world model space

kpennell
Collaborator
Collaborator

It seems, the coordinates I get returned from using (trans (trans 3 2) 2 0), is dependent on the viewdir and viewtwist values of the viewport.

if the viewport is in plan view, looking down, with world X direction to the right, I get the expected values.

If the viewport is looking up, with world X direction to the right, my Y value is equally opposite (+/-) of what it really is in model space.

If the viewport is looking down, with world X direction to down, my X and Y values are swapped.

 

Any insight?  I'd rather not enter the viewport to retrieve the point using 'getpoint'.  The drawings are rather large, and entering and exiting the viewport is time consuming.  But if I have to, I guess I have to.

0 Likes
783 Views
2 Replies
Replies (2)
Message 2 of 3

kenneth.smithV6QLC
Enthusiast
Enthusiast

Hello, kpennell!

Try the command CHSPACE. Enter a viewport then initiate the command to pull to PaperSpace. AutoCAD will recognize the VP scale and adjust. Similarly, starting in PaperSpace, you can run the command to 'push' to ModelSpace. Try drawing a grid in paperspace then pushing it to ModelSpace to see where it lines up. I hope this helps!

Please be kind, rewind your exploding. Do not explode hatching, dimensions or text. Think of your fellow drafters! 🙂

https://www.youracclaim.com/badges/9aa4a1d5-0d02-4888-be6f-ed8f0653d8ad/public_url
0 Likes
Message 3 of 3

john.uhden
Mentor
Mentor

Here's a file since before there was an Autodesk CHGSPACE command.

Unless it's missing some functions I didn't transfer into the freeware version attached, there may be some learning you can get from it.  Please let me know.

John F. Uhden

0 Likes