.lisp for combining functions to simplify xref backgrounds, eg colour, purge, audit, flatten etc

.lisp for combining functions to simplify xref backgrounds, eg colour, purge, audit, flatten etc

jennie.ashdown
Explorer Explorer
223 Views
2 Replies
Message 1 of 3

.lisp for combining functions to simplify xref backgrounds, eg colour, purge, audit, flatten etc

jennie.ashdown
Explorer
Explorer

Hello All, 

This is my first post here, well being a current LT user I've not been able to access lisp for a while lol.

 

Anyway, now I can use the routines again, I'm after the moon on a stick maybe?

At my old company we had a 'Archisort' routine that automated the process of simplifying a Architects Drawing into one we use as an Xref background for our MEP services.

 

Basically it would turn all layers to bylayer and colour 8, flatten, remove duplicate objects, remove solid hatches & 2D, remove wipe-outs from drawing & blocks and globally change fonts, not forgetting purge & audit. basically by ticked the above that you wanted.

 

Obviously I do a lot of it manually, and I don't have some of the express options.

But I'd really love of there was some sort of lisp that combined maybe bylayer, remove duplicates, purge & audit at least to enable me to do the rest, and cut down time when I have loads of floors to do.

 

Thanks in advance!

0 Likes
224 Views
2 Replies
Replies (2)
Message 2 of 3

rgrainer
Collaborator
Collaborator

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-for-layers-and-purging/m-p/80...
Dig around in here to get started.
use the Search feature for more code/functions.
Not sure most know what an Archisort is.
Ask questions in your title that are meaningful.

 

0 Likes
Message 3 of 3

Sea-Haven
Mentor
Mentor

If you do logfileon it will record what your doing to a log file, so do the steps manually to a dwg, when finished type logfileoff, this will stop recording. The log file location can be found by OPTIONS, FILE, Log File. I have reset mine to a simple location.

 

Ok the logfile is the start of your lisp or even a script file. The only thing with scripts is spaces and line feed becomes critical, as line feed is the same as a ENTER.

 

A lisp may be better way to go as you may need to load some other lisps as you process, like remove wipeouts. If you can not find code type as "; wipe out code need here", then google and find that bit of code. We can help you.

 

There is lots of example code for clean up a dwg. Re -purge manual version usually run twice.

 

 

0 Likes