Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

zoom factor affects VBA program

Status
Not open for further replies.

jrice174

Civil/Environmental
Joined
Nov 8, 2004
Messages
129
Location
US
While testing my VBA program I have a drawing with a long horizontal line with text slightly above it. My program selects these and prints the coordinates of them. However, when I am zoomed to extents only the line info is retrived and when zoomed in closer, only the text info in retrieved.

How can a zoom effect what a VBA program see in the drawing?
 
The selection you are using is probably a coordinate like (x,y,z). Autocad selects the first thing inside it's selection box centered on that point. The selection box size is set with a system variable. Zooming out or in would affect what is inside the selection box. You may want to zoom centered on the point to a height of the text size or a little more, then do the selection.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top