I have an SolidEdge Assembly which is having an one more assembly in it .i.e assembly having a subassembly.
I am opening this assembly in Solidedge ST version application.
Then I am selecting some parts from MainAssembly and then some parts from its subassembly from path finder window , treeview.
Then , I am reading these selections using "SelectSet" property API on the main assembly
I am getting the currect total count of selected part form SelectSet property
But while reading and converting the objects in "SeletionSet', I am successful in converting the objects of main assembly parts only and while converting the objects of parts which are selected from subassembly, program does not able to convert these objects in any type of Solidedge document type.
So, please give me the information about , how I can access these parts which are selected from the subassembly using 'SelectSet' API.
For reference ,Code was written as follows.
AssemblyDocument)objApp.ActiveDocument;Occurrence objOccur = null;for (int n = 1; n <= objSelectedSet.Count; n++)try
{
objOccur = (SolidEdgeAssembly.
}
{
}
}
Occurrence)objSelection; //Gives error while loops for object of subassembly parts in main assembly.catch (Exception ex)throw ex;
objAsmDoc = (SolidEdgeAssembly.
objAsmOccurrences = objAsmDoc.Occurrences;
objSelectedSet = objAsmDoc.SelectSet;
SolidEdgeAssembly.
{
objSelection = objSelectedSet.Item(n);