Using C# with the COM object, I'm trying to select all the objects in Paperspace and then wblock them out so I can insert them into a different drawing.
I"m having issues determining how to pass the filter object to AutoCAD from C#
AcadDocument oDocChild = oAcad.Documents.Open(sFileName, false, "");
oDocChild.ActiveSpace = AcActiveSpace.acPaperSpace;
AcadSelectionSet ssPSpace = oDoc.SelectionSets.Add("Paper");
object[] oFilter = new object[0];
object[] oData = new object[0];
ssPSpace.Select(AcSelect.acSelectionSetAll, null, null, oFilter, oData);
I've also tried using null values instead of the object values, but it throws an exception error each time.
I know I can for each through all the objects in modelspace and then add it to my selectset, but wouldn't it be easier just to use a selectionsetall mode?
Thanks in Advance,
Bob