
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there!
I'm trying to find a solution for the following task:
I have to programmatically select some entities based on a predefined algorithm (It doesent matter which one, but to be clear e.g. Every 2nd block of a given name in x-direction between two points). Then I have to highlight them and let the user add other entities to, or remove preselected entities from this selection set by selecting them on screen.
I tried to prototype it in LISP like this, but failed, because I can't control what the user selects with this method:
(setq PreSs (ComputePreSelection))
(command "_.SELECT")
(if PreSs (command PreSs))
(while (> (getvar "CMDACTIVE") 0) (command pause))
(setq SelSet (ssget "_P")
I also failed using this code, because I can't deselect the preselected entities while looping in the filtering ssget call:
(setq PreSs (ComputePreSelection))
(command "_.SELECT")
(if PreSs (command PreSs))
(command (ssget '(( 0 . "INSERT") (8 . "S_ON*"))))
(setq SelSet (ssget "_P")
Is there a possibility using .NET to pass a predefined selection set to a selection method and let it modify while taking a filter into account?
TIA - Martin
Solved! Go to Solution.