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

Create version of TraverseAssemblyWithAction that operates on suboccurrences instead of occurrence docs #15

Closed ChrisClems closed 3 weeks ago

ChrisClems commented 1 month ago

Should be closed with cddc9556705d71a41571550b8849d615209d9bda

Leaving open until it can be thoroughly tested.

ChrisClems commented 1 month ago

Need to refactor to work on suboccurrence objects instead of using SubOccurrence.ThisAsOccurrence as this changes the assembly context. Create adapter for occurrence and suboccurrence common members?

ChrisClems commented 3 weeks ago

TraverseOccurrencesWithAction now supports an Occurrence and an IOccurrenceEsx signature. Working directly on occurrences will break the top level assembly context. When using the IOcurrenceEsx pattern, suboccurrences will be cast to an interface with common members implemented so that those common actions can be performed without breaking top level assembly context.