Instance InternalName

Instance InternalName

andrea_sacripante
Observer Observer
451 Views
8 Replies
Message 1 of 9

Instance InternalName

andrea_sacripante
Observer
Observer

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

0 Likes
452 Views
8 Replies
Replies (8)
Message 3 of 9

andrea_sacripante
Observer
Observer

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

0 Likes
Message 4 of 9

Frederick_Law
Mentor
Mentor
0 Likes
Message 5 of 9

andrea_sacripante
Observer
Observer
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
 
0 Likes
Message 6 of 9

Frederick_Law
Mentor
Mentor

Have you tried: occ.InternalName?

0 Likes
Message 7 of 9

andrea_sacripante
Observer
Observer

yes I get an error MissingMemberException

0 Likes
Message 8 of 9

A.Acheson
Mentor
Mentor

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
0 Likes
Message 9 of 9

andrea_sacripante
Observer
Observer

Thank you @A.Acheson 

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

Thanks for the help

0 Likes