4 Replies Latest reply on May 26, 2017 1:01 PM by kelli.hosier

    Using IMGCPCBIDFImport shorts nets

    navita@rafael.co.il

      Hi,

      I'm developing an interface between ProE and xPCB in C#.

      I've encountered a problem which I can't figured out why it happens???

      When I import an IDF file using the dialog box from the XPCB every thing is ok.

      RAFDOCS-#15322383-v1-Dialog.PNG

      When I'm trying to do the same thing using automation I get an unexpected result as shown in the pictures attached.

       

      circuit before automation

      RAFDOCS-#15322381-v1-BeforeAutomation.PNG

      circuit after automation

      RAFDOCS-#15322382-v1-AfterAutomation.PNG

       

      The code that I'm using for automation is:

       

      public static LogResult ImportIDF(MGCPCB.Document pcbDoc, string emnIDFPath)

              {

                  //config           

                  IMGCPCBIDFImport IDFImport = pcbDoc.IDFImport;

                  IDFImport.BoardFile = Path.ChangeExtension(emnIDFPath, ".emn");

                  IDFImport.CreateMissingMountingHoles = true;

                  IDFImport.NoToolAssignmentToContours = true;

                  IDFImport.UpdateComponentPlacementStatus = true;

                  IDFImport.ForceUpdateOfFixedMCADComponents = true;

                  IDFImport.ReplaceRouteObstructs = true;

                  IDFImport.MapContoursToSlotHoleMountingHole = true;

                  IDFImport.MapOtherOutlinesToUserLayers = true;

                  IDFImport.ImportMechanicalComponent = false;

                  IDFImport.Go();

                 return LogHandler.CheckLog(pcbDoc, LogName.IDFImport, IDFImport.Errors);

                  

              }

       

      Anyone has any idea why this happens?

       

      There is another thing concerning this action which I was hopping to get answer to.

      According to the documentation the IDFImport object doesn't cover all the options available in the dialog box.

      The option in the dialog box which are not accessible from the object are:

      • Replace only external placement obstructs
      • Map tooling hole to mounting hole
      • Process Other cutouts

       

      Thanks in advance,

      Navit