Jump to content
Faron

Using The New Dim Command From An Autolisp File

Recommended Posts

Faron

I recently upgraded from autocad 2013 to 2020, I think starting in 2016 the dim command is now different you can now pick your points and drag to horizontal, vertical or aligned with out 

having to select hort. vert or align first, which is really cool. I would like to use this command in one of my lisp routines that draws dimensions in the drawing but when I type in

(command "dim" pt1 pt2 etc.) in an autolisp file I get the old dim command that ask you for Horizontal, Vertical or aligned first instead of letting you drag to hort. vert. or align.,

Is there a way to use the new dim command (as of 2016) in an autolisp file?

 

Any help would be appreciated!

Share this post


Link to post
Share on other sites
BIGAL
Posted (edited)

removed comment

Edited by BIGAL

Share this post


Link to post
Share on other sites
Faron

Thank so much Tombu, it works great!!!

As far as "preselect the dimension type in your lisp and use DIMALIGNED, DIMLINEAR, DIMANGULAR, etc…" you suggested that's the way I'm doing it now, in my routine I'm using an opendcl  dialog box to select hort., vert. or align and then run the dim hort, dim vert, or dim align command in my lisp routine and everything works find I just though I could save a few steps by using

the dim command but you may be right to just keep it like it is, but it's good to know how to use the new dim command in a lisp routine for future projects. So thanks again tombu for taking the time to help me!

Faron

Share this post


Link to post
Share on other sites
tombu

Welcome to the forum, hope it helps you as much as it's helped me.  Lots of helpful users here for any questions you may have.

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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