wimal Posted September 16, 2015 Share Posted September 16, 2015 Why cant I open PURGE dialog box using following code. (command "PURGE" "") Quote Link to comment Share on other sites More sharing options...
rlx Posted September 16, 2015 Share Posted September 16, 2015 had to look it up http://forums.autodesk.com/t5/autocad-2010-2011-2012/purge-dialogue-box-doesn-t-show-up/td-p/4316544 (defun c:pu () (initcommandversion) (command "._purge") ) gr. Rlx Quote Link to comment Share on other sites More sharing options...
wimal Posted September 16, 2015 Author Share Posted September 16, 2015 Thanks a lot.It working nicely. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 16, 2015 Share Posted September 16, 2015 Although the use of initcommandversion may work, I think this is more appropriate: (initdia) (command "_.purge") Quote Link to comment Share on other sites More sharing options...
rlx Posted September 16, 2015 Share Posted September 16, 2015 you're right Lee , I couldn't remember where I used it last but suddenly I remembered I used it in my RlxIso routine when I was to lazy / smart enough not to invent the wheel again and use the power of autocad to work for me and use it's own functions for me (defun RlxIso_SetTextStyle ()(initdia)(vl-cmdf "style")) (defun RlxIso_LayerSetup ()(initdia)(vl-cmdf "layer")) (defun RlxIso_Dimsetup ()(command "_aidimstyle" "o")) (defun RlxIso_DrawingSetting ()(initdia)(vl-cmdf "dsettings")) (defun RlxIso_DimEdit ()(vl-cmdf "dimedit")) thanx for refreshing me :-) gr.Rlx Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted September 16, 2015 Share Posted September 16, 2015 No worries! 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.