PDA

View Full Version : Importing & Exporting Layer Filters?



brian.young
2004-06-28, 05:27 PM
I'm wondering if there is anyone out there that has a lisp or a vba routine that will import and export Layer Filters from a drawing. I have a lisp that will delete the layer filters from a drawing, but that is not what I'm looking for.

scott.wilcox
2004-06-28, 06:30 PM
Brian:

You should be able to import and export within the state manager dialog box, in the layer dialogue. If you choose export, AutoCAD creates a layer state file (.las extension) that you can save separately and import into other files.

Scott

brian.young
2004-06-28, 06:39 PM
I'm not looking to import or export the layer states. There is a pull down box in the upper laft hand corner of the layer dialog box called Layer Filters. This is the stuff that I'm looking to import or export from a given drawing into another drawing

jpaulsen
2004-06-29, 02:38 PM
Layer filers are imported when a drawing is inserted.

I keep a drawing that contains only layer filters and insert it into other drawings as a means to import them.

To export would be a little more difficult. You could save the drawing as a different name, erase all the entities in it, purge it, save it again and then insert it into the drawing that you want the layer filters imported into.

That is a roundabout way to export but it's the only way I know. Hopefully someone out there has a lisp or VBA.

Mike.Perry
2004-06-29, 03:07 PM
Layer filers are imported when a drawing is inserted.

I keep a drawing that contains only layer filters and insert it into other drawings as a means to import them.
Hi

As far as I'm aware this behaviour was changed by Autodesk with the introduction of AutoCAD 2004.

Below snippets are from an AutoCAD 2004 review -

<snip>
Layer filters are not multiplying on your drawings since they are not following when you insert or pasteclip to a drawing.
</snip>

<snip>
Now layer filters are not imported using insert there is a need to export and import layer filters.
</snip>

Have a good one, Mike