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 adapter to cast occurrences and suboccurrences to for common member access #23

Closed ChrisClems closed 3 weeks ago

ChrisClems commented 4 weeks ago

Need to be able to access common members of occurrences and suboccurrences in a single code path. Create adapter that implements common members.

ChrisClems commented 3 weeks ago

Initial implementation pushed in 646c0b3.

OccurrenceAdapter and SubOccurrenceAdapter auto generated with Rider. Need to fill out common members in IOccurrenceEsx and modify adapter members as needed.

ChrisClems commented 3 weeks ago

Basic testing complete. Also added OccurrenceDocument property to SubOccurrenceAdapter to directly get an occurrence document so it can be cast to a Solid Edge document with the GetDocumentEsx extension method.