Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
Nov 8, 2004
129
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?
 
Replies continue below

Recommended for you

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