- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I figured out a way to get a list of objects inside a ModelDoc view. But I can't even debug the code - I can't select a ViewBorder object in the drawing in any way. The Editor.SelectImplied method returns an error status when the view is selected before calling the command. The GetSelection method also returns an error or writes that 1 object is filtered and requires re-selection. Moreover, I even tried to create a selection filter for VIEWBORDER objects. This does not help.
At the same time, if I call SelectImplied on the Idle event, I get an OK status and a view identifier, no problems. That is, the problem occurs only inside methods marked as CommandMethod.
Does anyone know how to bypass this strange limitation? Perhaps there is some secret undocumented flag for CommandFlags?
Solved! Go to Solution.