0 Replies Latest reply on Sep 22, 2017 5:12 PM by Al Beau

    Assembly Mating and Reference ID API

    Al Beau

      I'm trying to figure out how to automate a process and need some assistance. There's an assembly where a macro inserts four of the same component and they have the next instance IDs. I added face entities so I can select them by top, left, right, front back faces. Is there a way to do the following:

      1. Change the instance ID count after inserting the components starting at 1 to 4? If I delete the components and rerun it I would like to use them for selecting in the next stage of the mating portion of the macro
      2. Select the components and mate the faces. How can you grab the face entities I labeled of the component if you don't know the reference id of each component as solidworks just starts adding more and doesn't reset?
      3. Select each components origin for a mate.