Jump to content

Converting a Macro to a script


Movieangel

Recommended Posts

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!!!
Link to comment
Share on other sites

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.

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...