Hi,
help me, how to create Reference (via method AssemblyDocument.CreateReference(occurrence,entity)) from occurrence, where parent of occurrence is occurrence (3. level of assembly)?
I create Reference (C#):
SolidEdgeFramework.Reference reference=SolidEdgeAssembly.CreateReference(((SolidEdgeAssembly.SubOccurrence)occurrence.Parent).ThisAsOccurrence, occurrence.ThisAsOccurrence);
It's ok. But if i use this reference to select suoccurrence (using method SelectSet.Add(reference)), occurs error.
Does anyone know how to create such Reference that can be used to selec suboccurrence?
Thanks. |