chulse Posted June 1, 2010 Share Posted June 1, 2010 Is it possible to set a specific layer filter programmatically (i.e. to include in acaddoc.lsp and apply on file open)? Thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Share Posted June 1, 2010 AFAIK, you can create a layer filter through LISP, or query the properties of an existing filter (filters are stored as XRecords in the Extension Dictionary of the Layer Collection), but without going through the Layer Manager, you cannot set the filter current through LISP. Quote Link to comment Share on other sites More sharing options...
chulse Posted June 1, 2010 Author Share Posted June 1, 2010 AFAIK, you can create a layer filter through LISP, or query the properties of an existing filter (filters are stored as XRecords in the Extension Dictionary of the Layer Collection), but without going through the Layer Manager, you cannot set the filter current through LISP. I was afraid of that. Thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 1, 2010 Share Posted June 1, 2010 You're welcome, sorry to be the bearer of bad news Quote Link to comment Share on other sites More sharing options...
autocart Posted November 2, 2011 Share Posted November 2, 2011 Hi, it IS possible: http://www.theswamp.org/index.php?topic=39209 Quote Link to comment Share on other sites More sharing options...
sadhu Posted June 28, 2013 Share Posted June 28, 2013 Have a look at this .. it works for me. (command "._-layer" "filter" "new" "group" "" "YOUR_FILTER*" "YOUR_FILTER_NAME" "" "") YOUR_FILTER* = put your filter wildcard YOUR_FILTER_NAME = name of filter - will become current Quote Link to comment Share on other sites More sharing options...
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.