Results 1 to 4 of 4

Thread: Calling a previously Recorded Macro in a Script file

  1. #1
    Member
    Join Date
    2008-07
    Posts
    3
    Login to Give a bone
    0

    Unhappy Calling a previously Recorded Macro in a Script file

    Hi All,

    I have a simple script file to open a series of drawings in a row.
    After opening i do a zoom extend and call a previously recorderd macro.
    This works fine until the macro finishes because then my script stops.

    Anyone having a solution to this issue?

    Thx,

    Marcel

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    0

    Default Re: Calling a previously Recorded Macro in a Script file

    What else do you want it to do?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Member
    Join Date
    2008-07
    Posts
    3
    Login to Give a bone
    0

    Default Re: Calling a previously Recorded Macro in a Script file

    Hi Opie,

    I want it to:

    1. create and purge layers, text and dimension styles
    2. deleting old sheets and titleblocks and insert a new ones
    3. synchronize my attributes with a database (EDM system)
    4. thaw a certain layer
    5. save the drawing

    The macro is not the problem. That works fine.
    I only cannot call it from a script file.

    ( I generate a script file from an excel sheet )

    the script is as follows:

    filedia
    0
    cmddia
    0
    attreq
    0
    open
    "c:\test\test1.dwg"
    zoom
    e
    {name of the macro}
    qsave
    close
    open
    "c:\test\test2.dwg"
    zoom
    e
    {name of the macro}
    qsave
    close
    ...
    ...
    open
    "c:\test\test300.dwg"
    zoom
    e
    {name of the macro}
    qsave
    close
    ...
    ..
    filedia
    1
    cmddia
    1
    attreq
    1

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    0

    Default Re: Calling a previously Recorded Macro in a Script file

    I'm not sure.

    Have you examined the text screen to see what is happening during your script execution? Could you post the results of the text screen?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. Calling a script from with in a lisp
    By randy.sherwood597724 in forum AutoLISP
    Replies: 4
    Last Post: 2012-06-05, 04:13 PM
  2. Converting a script/macro to a LISP file?
    By mpeterson79 in forum AutoLISP
    Replies: 2
    Last Post: 2008-12-22, 02:17 PM
  3. call script within macro & nested macro
    By wahyudin in forum AutoCAD LT - General
    Replies: 3
    Last Post: 2007-10-22, 01:10 PM
  4. Loading a script from a command macro
    By ewhite in forum AutoCAD Customization
    Replies: 7
    Last Post: 2007-04-08, 04:44 AM
  5. Turn Lineweight setting OFF via Script or Macro or...
    By alanr in forum AutoCAD Customization
    Replies: 4
    Last Post: 2006-06-21, 06:30 PM

Tags for this Thread

Posting Permissions

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