
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I do apologise for hitting up these forums yet again so quickly. I promise I search through all the existing questions here and google half the internet before deciding I can't find any relevant answer before I post these.
Does anyone know how to use saved filter names/states in writting lisp routines? i.e using the FILTER command I have saved 3 or 4 fairly complicated filters. Because I don't know how to apply these filter names in writing lisp code, the best way I have found to use them is in recorded macro actions (but even then, the recorder does not retain which filter I applied so each playback will pause the routine until I select the filter I want to use). To be honest, my ability to code lisp is at the extreme beginner stage anyway so macros have been my bread and butter. Apart from what the members of this forum have been kind enough to write for me.
Before anyone asks, even if I did know lisp quite well, my saved filters are pretty complex with multiple nested begin end/or and end and/or situations. I wouldn't know where to start if I was to try and grab the relevant entities (that meet certain conditions) in any lisp ssget type routine. The examples of lisp that demonstrate how to select objects based on filters does not cover the complexity of what I need.
Someone savvy at lisp probably could code a way of selecting the objects in my saved filters but it would be quite complex code and that person would then have to write the entire code for what I want to do with the selection...many different actions for each saved filter set.
It would be much easier if I could just insert the name of the saved filter into the code in some way. If someone could just demonstrate an easy example of that, then I would be able to do the work myself and write the subsequent lisp routines I want that use those names. Much prefer that option than having to ask someone to write half a dozen routines for me.
Can someone please sing out if I've just missed something really obvious as what I'm asking doesn't feel like it should be too hard.
Thanks very much guys.
Solved! Go to Solution.