Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Display area coords/zoomfactor

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
112 Views, 0 Replies

Display area coords/zoomfactor

I have a routine that measures the distance that an object is located along
a polyline. In it, I draw an arrow with (grvecs) to indicate which
direction the polyline is pointing. I'd like to make that arrow draw the
same size irregardless of what scale the drawing is currently scaled at.
Right now I'm using

(/ (getvar "viewsize") size) ;'size' being the length of the arrow.

This works, unless the user is in a viewport in the layout tab. Then it
scales the arrow to the current viewport. If the user is zoomed in pretty
close (we lock our viewports), the arrow appears huge, if they're zoomed
out, its small--exactly what I'm trying to avoid.

So does anyone have any ideas on how to get the zoom factor or the
coordinates of the display area in a layout tab?

--
Ben Maki
NDC Inc.
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost