bkkar_55 Posted February 14, 2016 Share Posted February 14, 2016 hi all, i'm new user in macro and need help i want macro to do this 1-save as dwg in user Document (automatically create folder and call it Bind) 2-Bind all xrefs in dwg file 3-save dwg and close i find macro to save dwg , bind xref,and close But i cant make it to save as in user Document automatically sorry my English not good but i hope you find it well:):) Quote Link to comment Share on other sites More sharing options...
bkkar_55 Posted February 15, 2016 Author Share Posted February 15, 2016 i find this (strcat (getvar "dwgprefix")(getvar "DWGNAME")) it's work great but i want to make macro to create folder in user Document automatically Quote Link to comment Share on other sites More sharing options...
bkkar_55 Posted February 15, 2016 Author Share Posted February 15, 2016 Ok another Question how to make macro to ASK for Save Path Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 16, 2016 Share Posted February 16, 2016 An example of a lisp to make a directory (if (vl-file-directory-p "C:\\Acadtemp\\") (Princ "Acadtemp exists") (vl-mkdir "C:\\AcadTEMP\\") ) Quote Link to comment Share on other sites More sharing options...
YZ Posted February 16, 2016 Share Posted February 16, 2016 I think you could achieve all this with a saved setting in the ETRANSMIT command. It will bind everything and can be defaulted to a certain file. I don't know of a way to use a macro to force AutoCAD to make file folders. Perhpas you could do that with a Windows batch file? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted February 16, 2016 Share Posted February 16, 2016 YZ you can do lisp in scripts (vl-mkdir (strcat (getvar "dwgprefix") "\BIND")) 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.