Jump to content

Move Dimension lines - How to?


chavlji

Recommended Posts

I would like to write a program that is able to move dim baseline (line with a length text) of a dimension (aligned or linear). So I would like to leave definition points (points attached to objects) intacked, only move the dim baseline.

Line if you click on one edge of dim baseline and drag it somewhere.

 

I tried this but it doesn't work:

(setq 
       Ent   (EntGet EName)
       Ent (PutProperty 10 (MovePt (GetProperty 10 Ent) dx dy) Ent))
       (entmod Ent))))

 

MovePt is my function that moves point for dx, dy. PutProperty and GetProperty are my procedures based on assoc function...

Any idea why it is not working?

Link to comment
Share on other sites

The upper code works fine for NON ANNOTATIVE dimensions.

 

But it dimension is created using annotative style it doesn't work. Should I change something in the dictionary?

Link to comment
Share on other sites

I've read that first I have to get current anno scale. I can do this.

Then I have to search (in the dictionary?) for entity that is used for this scale and change it.

Can anyone tell me how to find this entity?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...