Brenda Tanner Posted July 10, 2012 Share Posted July 10, 2012 In working with SQL, we often record macros and then read the macro file to see how the software like Access needs the syntax to be so we can write similar macros in the future. I recorded a macro in AutoCAD and then when I opened the action file in notepad, I see it's a very complex structured file. Not a simple text file like I was expecting. Is there a way to view the steps in a macro file? I'd like to be able to see how the software builds them for the correct syntax. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 10, 2012 Share Posted July 10, 2012 This thread may help to clarify: Editing the ACTM files Quote Link to comment Share on other sites More sharing options...
Brenda Tanner Posted July 10, 2012 Author Share Posted July 10, 2012 That's good information. Thank you for posting. I found what looked like a nice macro to do a SaveAs. What I am trying to do is allow the user to click on the menu item, then the file will be saved in a new location with a slight change to the filename. It looks like it should work, but what actually happens is the filename just gets truncated. Perhaps I missed something with it but here is the macro: ^C^C_filedia;0;_saveas;2004;$m=$(eval,"s:/checker/"$(substr,$(getvar,dwgname),1,$(-,$(strlen,$(getvar,dwgname)),4))"(Pending).dwg");filedia;1; Quote Link to comment Share on other sites More sharing options...
BlackBox Posted July 10, 2012 Share Posted July 10, 2012 I prefer to have menus, and buttons call LISP functions rather than Diesel for the more robust features, functions, and error handling capabilities. 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.