Community
Hello,
How can I select all the objects (lines, plylines, etc) in the drawing using C# + AutoCad?
AcadSelectionSet select = _acadCurrentDocument.SelectionSets.Add("my"); select.Select(AcSelect.acSelectionSetAll);
Trying to modify this coede, but something is missing.
Solved! Go to Solution.
Solved by Hallex. Go to Solution.
If you using AcadInterop so try this code snip:
AcadSelectionSet oSset = doc.SelectionSets.Add("my"); //using filter object miss = Type.Missing; short[] dxfcode= new short[]{0}; object[] dxfvalue= new object[]{"line,polyline,circle,ellipse,text,insert"}; oSset.Select(AcSelect.acSelectionSetAll, miss, miss, dxfcode as object, dxfvalue as object); //send message to command line: doc.Utility.Prompt(string.Format("\nSelected: {0} objects", oSset.Count));
~'J'~
But i am using Standard EXE and how does select all work in my case and get the texts with Origins