lisp to export /import the layers Properties Filter in autocad 2019

lisp to export /import the layers Properties Filter in autocad 2019

JM_THS_4Y
Participant Participant
5,115 Views
17 Replies
Message 1 of 18

lisp to export /import the layers Properties Filter in autocad 2019

JM_THS_4Y
Participant
Participant

Good afternoon everyone,
I'm asking if you can help me with a lisp that can export the layers Properties Filter I have in a drawing and then import them into any other drawing (Autocad 2019).
They are not Filter Properties (in group) they are individual.

Thank you all for your help.

 
0 Likes
Accepted solutions (1)
5,116 Views
17 Replies
Replies (17)
Message 2 of 18

dbroad
Mentor
Mentor

Your illustration doesn't show any filters. Without using lisp, start the layer command. Then choose the layer states button(or just use the layerstates command). Create a new layer state and then export it.  In any other drawing, import the layer state.

You can also just insert a drawing into any other drawing.  All the layers will be created. Then just delete the drawing and purge the additional stuff out.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 18

JM_THS_4Y
Participant
Participant

Thanks for the answer, but that's not what I need, it's exporting simple filters, not as groups or layer states.
Thanks anyway.

0 Likes
Message 4 of 18

pbejse
Mentor
Mentor

@JM_THS_4Y wrote:

Thanks for the answer, but that's not what I need, it's exporting simple filters, not as groups or layer states.
Thanks anyway.


 

Show us then what exactly do you need @JM_THS_4Y so there is no confusion

 

0 Likes
Message 5 of 18

JM_THS_4Y
Participant
Participant

what I need is a lisp that takes all the layer filters that any drawing has and exports these filters so that I can later import them into other drawings that don't already have those same filters created.

 

So in all drawings, whether new drawings or already in work, but at any time you can import the filters that were exported before and so it is possible to import this information for the drawings you want.

 

I don't know if I was clear, I'm sorry.

 

what I need is not to export the layer state, that doesn't solve me.

 

thank you very much

 

0 Likes
Message 6 of 18

pendean
Community Legend
Community Legend
Read this while you wait (signing up is totally free if you are not a member) https://forums.augi.com/showthread.php?173035-Importing-Layer-Filters-into-multiple-drawings

0 Likes
Message 7 of 18

JM_THS_4Y
Participant
Participant

thanks,

the solution from https://www.augi.com/forums/showthread.php?97438-Can-I-create-frequently-used-layer-filters-in-LISP&... with lisp LayerFilter.lsp works in part.

 

It only exports and imports one filter at a time, but it's always better than nothing.


Ideally, export all the filters, then import them all again, but that at least helps.

 

If however someone with more knowledge can help improve this lisp, to export all and then import all or with the possibility of selecting several that would be very good.

 

Thanks again for the help so far.

Message 8 of 18

ВeekeeCZ
Consultant
Consultant

Some verticals have these features built-in, C3D include. It's 

LAYERLOADFILTERTREE

LAYEREXPORTFILTERTREE

 

Also, dotsoft had some free stuff that worked with layer filters. You can try it HERE 

 

0 Likes
Message 9 of 18

pendean
Community Legend
Community Legend
While you wait... see "solution" offered by Autodesk for plain AutoCAD users https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to...
0 Likes
Message 10 of 18

JM_THS_4Y
Participant
Participant

thank you, but this is not what i need.

0 Likes
Message 11 of 18

pbejse
Mentor
Mentor

Any chance you get post a sample drawing with filters already set up?

 

0 Likes
Message 12 of 18

JM_THS_4Y
Participant
Participant

Yes,

thanks

 

0 Likes
Message 13 of 18

ВeekeeCZ
Consultant
Consultant

@pbejse wrote:

Any chance you get post a sample drawing with filters already set up?


Seems to me that it works flawlessly. Or are you aiming to do some self-learning exercise? 📖

0 Likes
Message 14 of 18

pbejse
Mentor
Mentor
Accepted solution

@JM_THS_4Y wrote:

..

Ideally, export all the filters, then import them all again, but that at least helps.

...


Tested on AutoCAD 2017 | Export only with lft file option

Command: ImpAllFltr

Command: ExpAllFltr

 

HTH

 

Message 15 of 18

JM_THS_4Y
Participant
Participant

excellent,
thank you very much, that was it!

very grateful for the help.

5 stars

thank you very much 

 

0 Likes
Message 16 of 18

S_S_SS
Advocate
Advocate
it's an excellent lisp
can you make it for "dwg" files sir ??
and thanks in advance
0 Likes
Message 17 of 18

raja_shahbazQN4N3
Contributor
Contributor
but it give option to export one by one is it possible to export all filter in one time
0 Likes
Message 18 of 18

jarreTRXLH
Explorer
Explorer

Is there a way to modify this LISP to export and import the complete Filter Tree structure?

So to include all subfilters that may be present in a property/group filter?

 

 

0 Likes