Active selection contains one selection but its entity is/becomes None on acces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Right click on the NC Programs item in Browser and hit Post Process then attempt to handle the command starting event for this command. In it, examine the UI's active selections list.
I've seen one of two things happening:
a) list has one item, its entity is valid and is name is "NC Program" (as queried in the debug window) but when I attempt to make a copy of the list, the copied entity resolves to None and from that point on object in active selections also resolves to none
b) list has one item but its entity resolves to none from start
It is either that once a) happens next debug attempts lead to b) or b) happens a lot more. Once thing appears to be sure, I cannot make a copy of the "NC Programs" selection and restore it after I do some other processing in that command starting event.
It all works fine if the selection is an NC Program object, but not for its parent node.
Any ideas?