ChrisClems / EdgeSharp

A library of helpers and extensions for the Solid Edge API. A spiritual successor to SolidEdge.Community build on modern .NET to make Solid Edge interop less frustrating.
MIT License
1 stars 0 forks source link

Traverse frames in assembly as parts #20

Open ChrisClems opened 1 month ago

ChrisClems commented 1 month ago

Get frame segments as part documents for full featured model manipulation.

var frames = doc.StructuralFrames;

frame.GetSections(out sectionCount, ref sections);

frame.ReturnOccurrenceForGivenSectionID(secId, out sectionOccurrenceId, out sectionOccurrence);

var sectionOccurrenceDoc = (SEAsm.Occurrence)sectionOccurrence;

var seDoc = (SE.SolidEdgeDocument)sectionOccurrenceDoc.PartDocument;