• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

cleaning heavy files and automation via lisp

thelittlesniper

Guest
Hi.
I searched everywhere, in the forum and on google but found nothing that could come useful to me besides what I already do to lighten my designs. Now I'll explain a little better.. .
I make plant designs on dwg received by other arches, ing., geom. and beautiful company, inserting in my design a xref file with inside all the floors of the building received by the above professionals. Therefore the xref comes from me manually cleaned: applying to the layers the colors and states (plot/no plot...) desired, performing a rename of the blocks, eliminating any external connections (photo, other xref, pdf, nested elements...) and making a final purge.

I therefore wanted to know if there is a lisp that can accelerate my work on the xref by automatically performing some parameters such as the elimination of precise elements (quotes, points, covers...), attribution to the various elements in the design the state of "from layer" for colors and line thicknesses and elimination of external references.

in addition to the previously described operations, I usually perform the overkill command and, very carefully, three lisps: one that eliminates the retini from the selected blocks ("elhatch"); one that carries all the elements of one or more blocks on the layer 0 ("blockentprops"); and another that brings me all the elements of the z=0 drawing ("flatten"). Could these last lisp be integrated into the previous one, perhaps with a message that asks me whether the operation of that lisp should be performed or not?

allego lisp that maybe someone else will be useful.
 

Attachments

If your optimizations are always the same, you could make a script.
step-by-step the commands you would like to impart, write them on a text file with .scr extension (instead of .txt), then throw it from command line by writing script and going to look for it in the cul folder you placed it.
Of course I recommend you do mooolte tests before launching it on important files! ... or at least made copies.
in a script you can also upload and launch lisp.
 
If your optimizations are always the same, you could make a script.
step-by-step the commands you would like to impart, write them on a text file with .scr extension (instead of .txt), then throw it from command line by writing script and going to look for it in the cul folder you placed it.
Of course I recommend you do mooolte tests before launching it on important files! ... or at least made copies.
in a script you can also upload and launch lisp.
I'll try... thank you.
 
Hi, I used this a lot of years ago when you were only working in 2d.
load the lisp, to launch it type zeta and he asks you the value of z to which you want to bring objects.
type 0 and select everything.
I hope it works again and can be useful
 

Attachments

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top