+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Jul 2012
    Posts
    17

    Default Record a Macro and Then Read the Action File Contents

    Registered forum members do not see this ad.

    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.

  2. #2
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,945

    Default

    This thread may help to clarify:

    Editing the ACTM files
    "Potential has a shelf life." - Margaret Atwood

  3. #3
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Jul 2012
    Posts
    17

    Default

    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:

    Code:
    ^C^C_filedia;0;_saveas;2004;$m=$(eval,"s:/checker/"$(substr,$(getvar,dwgname),1,$(-,$(strlen,$(getvar,dwgname)),4))"(Pending).dwg");filedia;1;

  4. #4
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,945

    Default

    Registered forum members do not see this ad.

    I prefer to have menus, and buttons call LISP functions rather than Diesel for the more robust features, functions, and error handling capabilities.
    "Potential has a shelf life." - Margaret Atwood

Similar Threads

  1. action macro - how to select last layout tab
    By jrn in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 23rd May 2012, 12:09 pm
  2. Record macro in simulation
    By Radzha in forum SolidWorks
    Replies: 0
    Last Post: 15th May 2011, 06:16 pm
  3. Using Macro Record in 2010
    By Jimmy Tin in forum AutoCAD General
    Replies: 8
    Last Post: 30th Sep 2010, 03:29 am
  4. Action Recorder macro
    By mahesh_neelam in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 14th Jul 2010, 12:14 pm
  5. Record macros with the Action Recorder
    By AutoCAD Tips Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 28th Apr 2008, 07:10 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts