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

Instance InternalName

Hello,

do you think is possible to retrieve the instance "InternalName" with iLogic?

I don't know if the attribute "InternalName" is correct, at the moment I can retrieve the InternalName of my assembly and parts (i.e. {6745DE2E-46A0-CFE5-EBA5-21A6FD5F2AA9}), but I would also like to retrieve the InternalName of the relation father-son.

Thanks,

 

andrea

Thanks, that is the internal name of the object but I am looking for the name of the relation father-son.

Dim assyDef As AssemblyComponentDefinition
assyDef = assyDoc.ComponentDefinition
 
For Each occ As ComponentOccurrence In assyDef.Occurrences
occ.Name
Next
 
occ.Name gets me something like "Part1:1", I'd like the "InternalName" of this, I don't know if there is a syntax to get to this.
Thanks
 

Have you tried: occ.InternalName?

yes I get an error MissingMemberException

Hi @andrea_sacripante 

 

Are you talking about the referencekey?

Syntax

ComponentOccurrence.GetReferenceKeyReferenceKey() As Byte, [KeyContext] As Long )

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan

Thank you @A.Acheson 

I'm sorry but I don't understand how to get the argument ReferenceKey() .

Thanks for the help