×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

zoom factor affects VBA program

zoom factor affects VBA program

zoom factor affects VBA program

(OP)
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?

RE: zoom factor affects VBA program

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources