How can I get all selected objects on the active Autocad drawing in my c# Autocad plug-in application?
I have tried to get a selection set as follows:
SelectionSet Selection = AcadApp.DocumentManager.MdiActiveDocument.Editor.SelectImplied().Value;
foreach (SelectedObject Instance in Selection) ...
It seems that I can get selected objects if I have such selection set. Te problem is I get null reference exception in line:
AcadApp.DocumentManager.MdiActiveDocument.Editor.SelectImplied().Value