EnM4st3r Posted July 3 Posted July 3 Hi, does anyone know how to get a list of all Layerfilters in the document? I want to create a new Filter but if that filter already exists i want to add the layers to that filter instead of creating a new one. Thats the line im using to create the filter: (command "_.-layer" "_filter" "_new" "_group" "" (apply 'strcat (mapcar '(lambda (x) (strcat x ",")) laylist)) filtername "") Quote
ronjonp Posted July 3 Posted July 3 (setq xdict (vlax-vla-object->ename (vla-getextensiondictionary (vla-get-layers (vla-get-activedocument (vlax-get-acad-object))) ) ) ) (vl-remove-if '(lambda (x) (/= 3 (car x))) (dictsearch xdict "ACAD_LAYERFILTERS")) Quote
EnM4st3r Posted July 4 Author Posted July 4 hmm, somehow my layerfilters doesnt seem to be saved in there. (setq xdict (vla-getextensiondictionary (vla-get-layers (vla-get-activedocument (vlax-get-acad-object))))) (vlax-dump-object (vla-item xdict "ACAD_LAYERFILTERS") t) this gives me Count 0 even tough there are layerfilters Quote
EnM4st3r Posted July 4 Author Posted July 4 oh, found a function of Lee Mac that does exactly what i want. 2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.