How to sequentially edit all DWG files in a particular folder?

How to sequentially edit all DWG files in a particular folder?

moonlikestoneBX57A
Enthusiast Enthusiast
245 Views
1 Reply
Message 1 of 2

How to sequentially edit all DWG files in a particular folder?

moonlikestoneBX57A
Enthusiast
Enthusiast

Hello,

 

At work, I need to use the .NET API to open and edit all DWG files in a folder one by one, and then close them. However, an error like the one shown in the attached image occurs during execution. I would like to inquire if there are other methods available through the .NET API to edit multiple CAD files.

 

ERROR.PNG

 

Thanks.

0 Likes
Accepted solutions (1)
246 Views
1 Reply
Reply (1)
Message 2 of 2

_gile
Consultant
Consultant
Accepted solution

Hi,

If you want to run the same action on multiple dwg file, instead of opening them in the editor, you can open the drawing databases in memory to process them. You'l find examples using a generic BatchProcess method here and there.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes