I need to get selected parts in assembly. I can use SelectSet, but I do not know how can I get a collection of parts. Below you see fragment C# code with exception:
SolidEdgeAssembly.AssemblyDocument asm = (SolidEdgeAssembly.AssemblyDocument)appSE.ActiveDocument;
SolidEdgeFramework.SelectSet ss = asm.SelectSet; //ok
int scount = ss.Count; //ok
for (int i = 1; i
SolidEdgeFramework.SolidEdgeDocument occ =
SolidEdgeAssembly.Occurrence oc = (SolidEdgeAssembly.Occurrence)ss.Item(i); //
SolidEdgePart.PartDocument pd = (SolidEdgePart.PartDocument)ss.Item(i); //
Can someone help me?
Posted by: Norbert AdamskiPost date: 4/11/2009 12:39:24 AM
change from int to long, in C++ this helped me in similar situations.
Posted by: Massimo MagrisPost date: 4/13/2009 1:51:12 AM