Faron Posted August 21, 2019 Share Posted August 21, 2019 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! Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 22, 2019 Share Posted August 22, 2019 (edited) removed comment Edited August 22, 2019 by BIGAL Quote Link to comment Share on other sites More sharing options...
tombu Posted August 23, 2019 Share Posted August 23, 2019 http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-6176FC98-DC5D-433E-8D76-F481BE68D46A initcommandversion (AutoLISP) Forces the next command to run with the specified version It may be easier to preselect the dimension type in your lisp and use DIMALIGNED, DIMLINEAR, DIMANGULAR, etc… Quote Link to comment Share on other sites More sharing options...
Faron Posted August 23, 2019 Author Share Posted August 23, 2019 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 Quote Link to comment Share on other sites More sharing options...
tombu Posted August 23, 2019 Share Posted August 23, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.