Movieangel Posted December 28, 2012 Share Posted December 28, 2012 (edited) 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 January 7, 2013 by SLW210 Code Tags!!! Quote Link to comment Share on other sites More sharing options...
pendean Posted December 29, 2012 Share Posted December 29, 2012 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. Quote Link to comment Share on other sites More sharing options...
Movieangel Posted December 31, 2012 Author Share Posted December 31, 2012 Thanks that worked perfectly.Now to throw it in the multibatch program to see if that program works the way I want Quote Link to comment Share on other sites More sharing options...
SLW210 Posted January 7, 2013 Share Posted January 7, 2013 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. 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.