I would like to create a lisp that goes through all dwg in a folder and perform a command.

I would like to create a lisp that goes through all dwg in a folder and perform a command.

SChoi7JGJZ
Participant Participant
288 Views
3 Replies
Message 1 of 4

I would like to create a lisp that goes through all dwg in a folder and perform a command.

SChoi7JGJZ
Participant
Participant

I have about 100 dwg files that were sent from another company in a folder. Unfortunately, all of these dwg files were not saved by an Autodesk application and I need to fix it before proceeding with design. I would like to create a lisp that goes through each drawing in the folder and perform the command "Exporttoautocad". Any guidance to do this will help. Thank you.

0 Likes
289 Views
3 Replies
Replies (3)
Message 2 of 4

DGCSCAD
Collaborator
Collaborator

Unless you're really wanting to create this LISP on your own, you could see if these meet your needs:

 

https://lee-mac.com/scriptwriter.html

 

https://help.autodesk.com/view/OARX/2025/ENU/?guid=AUTOCAD_CORE_CONSOLE

(The link for this ^ one is redirecting, so see the TOC at left)

AutoCad 2018 (full)
Win 11 Pro
0 Likes
Message 3 of 4

paullimapa
Mentor
Mentor

in addition there are also these:

1. ScriptPro (originally developed by Autodesk but has since dropped further development) offers the option to run a script file on multiple selected drawings. You can download the installer here.

2. AutoScript (similar to ScriptPro) which is a free add-on that gives you the capability of selecting multiple drawings to run a script file 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 4 of 4

ec-cad
Collaborator
Collaborator

"lisp that goes through each drawing in the folder and perform the command "Exporttoautocad".

Hmm.

What software has created these 'drawings'. If they will 'load' into AutoCAD, seems like you

could just (command 'saveas' "" filename "Y") to overwrite them as native Acad.

Your post says you want to do 'Exporttoautocad', implies you are (not) in autocad, but in

some other software that contains that command.

So, I am not sure what the case is.

 

ECCAD

0 Likes