Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
MattH_Work
437 Views, 3 Replies

Code to re-select edge?

I can use

 

oEdge = oApp.CommandManager.Pick(Inventor.SelectionFilterEnum.kPartEdgeCircularFilter, "Select an edge.") to grab an edge.

 

From 'oEdge' I can get the occurence of the owning part ( Occurrence = oEdge.Parent.Parent )

I can get the unique identifier from 'oEdge' using oEdge.TransientKey (?) which will then allow me to iterate another occurence of the same part and find the equivalent edge

 

How do I then select the 'new' edge programmatically but with the same outcome/properties as oApp.CommandManager.Pick (ie I need to get the occurence name from the newly selected edge via  Occurrence = oNewEdge.Parent.Parent)

 

Cheers

 

MattH


MattH
Product Design Collection 2025
Vault Pro 2025