0 Replies Latest reply on Jul 23, 2018 11:13 AM by Massimiliano Marenghi

    3D Interconnect API

    Massimiliano Marenghi

      Hi,

      we are improving our software managing 3D Interconnect utilities on Solidworks 2017.

      We are experiencing some difficult when we try to get foreign cad file structure.

      Suppose we import an Inventor IAM that contains some IPT (file attached).

       

      If I traverse all references of my sldasm I get a reference to a sldams in "C:\Users\pigonim.QSINFORMATICA\AppData\Local\Temp\swx10196\IC~~\ZZ-01-00317.iam.SLDASM".

      The file ZZ-01-00317.iam.SLDASM give me the reference to a sldprt in the same place.

       

      I iterate the children in this way :

       

      // Gets the root component for this assembly configuration.

      Component2 swRootComp = (Component2)swConf.GetRootComponent3(true);

      object[] vChildComp = (object[])swRootComp.GetChildren();

       

      if (vChildComp != null) {

      for (int i = 0; i < vChildComp.Length; i++) {

      // Get child

      var swChildComp = (Component2)vChildComp[i];

       

      string fullFileName = swChildComp.GetPathName();

       

      ....

      }

      }

       

      How can I have the real path of the Inventor iam and ipt ? (In my case "C:\Users\pigonim.QSINFORMATICA\Desktop\test\ZZ-01-00317.iam")

       

      Probably we are missing API calls we need to reach our goal.

      Please let me know if you need further informations.

      Thanks in advance.

      Best regards