For starters replace the line: dbids = axlGetSelSet(axlSelect(?prompt "Select components"))
with: axlSelect(?prompt "Select components") dbids = axlGetSelSet() axlClearSelSet()
Instead of using axlSelect, try using this:
axlSetFindFilter(depends on your selection)
axlSingleSelectPoint(axlLastPick(nil) for single selection or axlAddSelectPoint(axlLastPick(nil) if you want to group
dbidSelected = axlGetSelSet().
based on my experience, this code is easier to control instead of axlSelect.
The axlSelect will allow me to do window selection, tempgroup and is same as in Move/copy comand.
axlEnterPoint will select comonents at single point.
Wondering is there no way to exit axlSelect() in single command or its the limitation with User pop-up defined.