Jump to content
Movieangel

Converting a Macro to a script

Recommended Posts

Movieangel

I know this is probably a super easy fix, but I just don't know how to do it. I have a macro that works great in my toolbar and/or ribbon, but I want to make it a script so that I can put it in a program such as Multi-batch and use it on several drawings at one time. How do I convert a macro to a script? Basically what the macro currently does is pop my drawing into paperspace, zoom extents, turn off layers I don't need, and change the Ltscale and psltscale to be correct for printing. Any suggestions would be appreciated. Thanks so much. Here is the macro:

 

^C^C(setvar "pdmode" 0);_tilemode;0;zoom;extents;ltscale;0.5;-layer;f;*A-ANNO-ENGR,*A-SEAL-ASBESTOS,*A-SEAL-CIVIL,*A-SEAL-FIRE,*A-SEAL-ELEC,*A-SEAL-MECH,*A-SEAL-PLUMB,*A-SEAL-STRUCT;;

Edited by SLW210
Code Tags!!!

Share this post


Link to post
Share on other sites
pendean

Start Windows Notepad.Copy your macro into it.

Remove the ^C^CRemove each semi-colon and replace with a hard return so that each entry between ; symbols is on its own line (or a blank line where you have double ;; symbols).

 

 

Save the file with an SCR

Now test it using SCRIPT command.

Share this post


Link to post
Share on other sites
Movieangel

Thanks that worked perfectly.Now to throw it in the multibatch program to see if that program works the way I want

Share this post


Link to post
Share on other sites
SLW210

Movieangel,

 

Please read the CODE POSTING GUIDELINES and use Code Tags for your Macro etc. in the future. I fixed it for you this time.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...