Quick Select and delete on multiple drawings (Script Pro Replacement?)

Quick Select and delete on multiple drawings (Script Pro Replacement?)

max.bauerly
Contributor Contributor
445 Views
1 Reply
Message 1 of 2

Quick Select and delete on multiple drawings (Script Pro Replacement?)

max.bauerly
Contributor
Contributor

Hey all,

 

Hopefully this is the right place for this. I'm an Autocad Electrical user but I think this would apply to all of Autocad.

 

I guess this is a two-part question. I used to use Script Pro but I'm on Windows 11 now. Is there a third-party replacement for this yet? How can I run scripts on multiple drawings?

 

Assuming there is no replacement for Script Pro, I need a different way to accomplish something. I'd like to find a way to quick select a layer and then delete everything on that layer in multiple drawings. The problem I'm trying to solve is we balloon our revisions on our drawings and it would be nice to have a way to delete them on the whole project all at once instead of going through drawing by drawing and doing it.

 

Any help is appreciated, thank you!

 

0 Likes
446 Views
1 Reply
Reply (1)
Message 2 of 2

paullimapa
Mentor
Mentor

Replacement for ScriptPro

https://www.cadig.com/products/autocad-script-pro.php

QDLay.lsp code to delete objects on a layer:

(defun c:QDLay (/ laynam ss)
 (setq laynam "name of layer") ; replace with your layer name
 (if (setq ss (ssget "_X" (list (cons 8 laynam))))(command "_.Erase" ss "")(princ "\nNo objects found on that Layer"))
(princ)
) ; defun QDLay

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes