×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-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!

*Tek-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

Can Dimensions be "stretched" via VBA

Can Dimensions be "stretched" via VBA

Can Dimensions be "stretched" via VBA

(OP)
I've been banging my head on how to stretch a dimension via VBA.  When I add a dimension to a selection set and then move the object the whole dimension moves.  What I want to do is just move that control point and leave the other end fixed.  Ideas? Work arounds?  I thought about sendcommand but then I'd have to convert all my points to strings.....NOT.

RE: Can Dimensions be "stretched" via VBA

Hi RickyD302,

You'll need to move the endpoint or startpoint of the dimension entity, not the entire dimension itself.

HTH
Todd

RE: Can Dimensions be "stretched" via VBA

(OP)
And here lies the problem.  How do I get the endpoints of the dimension via VBA.  I tried to use a selection set but not luck.  any ideas.  I'm to the point right now that I'm using ThisDrawing.sendcommand ("stretch",........)

RE: Can Dimensions be "stretched" via VBA

Hi RickyD302,

look at the ExtLine1Point and ExtLine2Point properties for dimaligned entities in the help files, this should get you what you need.

HTH
Todd

RE: Can Dimensions be "stretched" via VBA

(OP)
I'm working with dimrotated so the ExtLine1 & 2 points are not exposed.  I'm working on getting those points via visual lisp. I'm new to all this stuff.

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 Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close