Nick1940 Posted March 14, 2017 Share Posted March 14, 2017 I type the following command: (command "dim" "scale" "0.06" ""). AutoCAD accepts the command and tells me I must input "exit" to exit the command. I do this on the command line and it works fine, but I don't know how to either incorporate the "exit" command into the above command or follow the above command with a second AutoLisp command executing the "exit" command. Please Help if you can! Quote Link to comment Share on other sites More sharing options...
tombu Posted March 14, 2017 Share Posted March 14, 2017 Use (command "dim" "scale" "0.06" "" "") Quote Link to comment Share on other sites More sharing options...
David Bethel Posted March 14, 2017 Share Posted March 14, 2017 Or alternately use "_.DIM1" for the command -David Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted March 14, 2017 Share Posted March 14, 2017 Or: (setvar 'dimscale 0.06) Quote Link to comment Share on other sites More sharing options...
Nick1940 Posted March 14, 2017 Author Share Posted March 14, 2017 Thanks David. I used the suggestion from Roy043, i.e., (setvar 'dimscale 0.06), which worked beautifully. Quote Link to comment Share on other sites More sharing options...
Nick1940 Posted March 14, 2017 Author Share Posted March 14, 2017 Thanks tombu. That did not work, but the suggestion from Roy_043, (setvar 'dimscale 0.06), did work. Quote Link to comment Share on other sites More sharing options...
Nick1940 Posted March 14, 2017 Author Share Posted March 14, 2017 Thanks David. I tried the "_.DIM1" - it opened the dialog box, which I did not know how to do (thanks) but was not what I wanted to do. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted March 14, 2017 Share Posted March 14, 2017 Thanks David. I tried the "_.DIM1" - it opened the dialog box, which I did not know how to do (thanks) but was not what I wanted to do. (command "_.DIM1" "_Scale" 2) Should work. No need for any closing CarriageReturns -David Quote Link to comment Share on other sites More sharing options...
Nick1940 Posted March 14, 2017 Author Share Posted March 14, 2017 Thanks again Dave. I tried it but this time it didn't even open the dialog box. But that's OK because the setvar command worked great. I am going to use the set var command to change the osnap setting as well. -Nick Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 15, 2017 Share Posted March 15, 2017 If you use this simple Dumpit and pick a dim you will expose all the variables that can be set and there are a lot. (vlax-Dump-Object (vlax-Ename->Vla-Object (car (entsel "pick an object")))) Quote Link to comment Share on other sites More sharing options...
Nick1940 Posted March 15, 2017 Author Share Posted March 15, 2017 Thanks BIGAL. When I first saw your post I thought it meant "big gal" now I see it is actually "big al". Anyway, I inserted the above command into my command line and it asked me to "pick a point". I wasn't sure what to do at that point so I tried a few things none of which produced anything of value. I may be too much of a tenderfoot to know how to use the command. BTW I hope you are enjoying summer in Aussi-Land. We are of course in the middle of winter and just got about a foot snow today with more coming tomorrow. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 15, 2017 Share Posted March 15, 2017 Just copy and paste to command line and pick a dimension or a circle or a pline etc. Need to look at Text screen. Its 32 centigrade at the moment. Made a mistake should have been BIG Al, Alan H. Quote Link to comment Share on other sites More sharing options...
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...
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.