Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create a .lsp or .scr to use on multiple drawing files

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
MarianneG
1772 Views, 7 Replies

How to create a .lsp or .scr to use on multiple drawing files

I've already created a script file to freeze and another to thaw a specific layer. Now, I need to be able to apply that script (freeze or thaw) to multiple drawing files.

I've found that if I use a tile view of several opened dwgs, I can drag the script file in and it works. But I will have about 75 dwg files on the upcoming project to try this with. 

Just wondering what the best way to approach this would be. Lisp routine?

My last customizing "lesson" was in school using autoCAD 2006, so I'm not sure if this is even possible.

Any help pointing me in the right direction would be appricated. 

 

 

Tags (1)
7 REPLIES 7
Message 2 of 8
Lee_Mac
in reply to: MarianneG

Message 3 of 8
mracad
in reply to: Lee_Mac

Check out AcCoreConsole in the forum.
Message 4 of 8

You will have to add these dwgs into the script file.

 

Make sure that all listed dwgs are closed.

 

OPEN "C:\Tepm\n1.dwg"
;;;Your script

QSAVE

OPEN "C:\Tepm\n2.dwg"
;;;Your script

QSAVE

OPEN "C:\Tepm\n....dwg"
;;;Your script

QSAVE

Message 5 of 8

Are the drawings names "generic"? The names, and quanities of drawings in the file I want to use are always different, depending on what project I need to change. And, there's usually a lot of them. Having to add in all the file names into the script would be counterproductive.

Message 6 of 8
MarianneG
in reply to: Lee_Mac

Thank you Lee_mac. I'll read thru and see if it will work for me.
Message 7 of 8
MarianneG
in reply to: mracad

I think this is EXACTLY what I'm looking for. With the ScriptPro2 app, it sounds like this will work.
Thanks for your help
Message 8 of 8

Are the drawings names "generic"? The names, and quanities of drawings in the file I want to use are always different, depending on what project I need to change. And, there's usually a lot of them. Having to add in all the file names into the script would be counterproductive.

 

Sorry, I thought I'm in Map Developer. Anyway, attached is a lisp to create multidrawing script.

Load it using APPLOAD command

Type in the command line CREATE-SCRIPT

1. Select exiting script that you want to apply to all drawings

2. Select one file in the folder

 

The script will work on ALL drawings in this folder!!!

Works in Map or Civil3D only

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost