Internal name of faces that are used to mate two parts in an assembly

Internal name of faces that are used to mate two parts in an assembly

ajaykarthikeyanv
Participant Participant
153 Views
3 Replies
Message 1 of 4

Internal name of faces that are used to mate two parts in an assembly

ajaykarthikeyanv
Participant
Participant

Hi, I'm trying to get the internal name of faces that are used to mate two parts in an assembly in for a mate feature.... through vba... this would help in an interference checker sort of macro

0 Likes
Accepted solutions (1)
154 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Hi @ajaykarthikeyanv.  That is not much to go on.  What type of help are you looking for here?  If you are looking or a code example, then what should the result of the code example be, and how do you need it to be laid out?  It sounds like you may have already created at least part of a VBA macro, but since you have not posted it, we have no idea how that existing code is laid out, so we do not know where or how to suggest adding some additional code into it to make it work the way you want.  We do not know what type of object you intend to get first, or how you intend to identify, find, or get that object, to start this whole process.  Do you intend to get a specific assembly component, a specific assembly constraint, a specific face proxy on a specific assembly component, or what.  What should happen with these face internal names once they are found?  Should they just be shown in a pop-up message, or should they be stored in some sort of special variable that some other resource can use later.

Please provide as much detail as possible.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 4

ajaykarthikeyanv
Participant
Participant

Hi @WCrihfield, I'm already using an automation macro to place aluminium profile to create profile assembly. which remove the user manually placing mates.... so I need to figure out the mated surfaces consider for mating and need to extract its internal name, i.e.  for the two surfaces used for mating, how could I extract its internal names from inventor API model tree using VBA by accessing its constraints.

ajaykarthikeyanv_0-1751430919080.png

 

0 Likes
Message 4 of 4

C_Haines_ENG
Collaborator
Collaborator
Accepted solution

You can find what the index is of the face you are looking for, and then reference that when its time to place constraints. Make sure to grab the face number from the DEFINITION of the component, not the face proxy as that seems to change over time.

0 Likes