Jump to content

Recommended Posts

Posted (edited)

Hi,

I have a dimension which I'd like to  put away from dimension line with leader. Since dimstyle is set to keep the text above the line, I have to use properties panel to change this for a particular dimensions. I'd like to be able to do it faster, but I don't know what set of commands Autocad follows, when I click on panels and select dimension.

Is there an internal "command log" to peek into?

Thanks!

 

Edited by Discus84
Posted

You can make a dimension then adjust it using lisp. Its not obvious but the 15 has been moved so its inside the dimensions.

image.png.95210e8b1ced10a6f92a491fef431e93.png

Some example code moves the dim text 125 x, 120 y.

(command "dim" "VER" p1 pt1 pt3 "" "exit")
(setq obj (vlax-ename->vla-object (entlast)))
(setq tpos (mapcar '+ (vlax-get obj 'TextPosition) (list 125.0 120.0 0.0)))
(vlax-put obj 'TextPosition tpos)

 

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...