Message System

The Message System is not only there to address imports and exports, but in general for commands to specify them without direct references.

Message System

You can address various exports with different MessageIDs.
For this you must use the function:
→ bool parent.SendMessage(string ReceiverName, string SenderName, int MessageID, List object Params).
 
Insert the ReceiverName given in this page and the desired MessageID of the export. Please pay attention to the parameters you have to pass for the export files!
 
  • "PCBI_GenCadImport.PCBI_GenCadExport"
    • ID: 1 Import GenCad file

      Params: string importPath

      ID: 2  Export GenCad file

      Params: string exportPath

      Example: parent.SendMessage("PCBI_GenCadImport.PCBI_GenCadExport", "script", 2, new List object(){ newGenCad })

 

  • "PCBI_IPC2581B.PCBI_Connection"
    • ID: 1 Import IPC2581b file Params: string importPath
      ID: 2 Add or modify Stackup Params: string/IFileData exportPath
      ID: 3 Export Stackup Params: string/IFileData exportPath
      ID: 4 Export to IPC2581b file Params: string/IFileData exportPath
      Example: parent.SendMessage("PCBI_IPC2581B.PCBI_Connection", "script", 4, new List object (){ newIPCF })

 

  • "PCBI_DXFImport.PCBI_Connection"
    • ID: 1 Import DXF file

      Params: string importPath

      ID: 2 Change Settings as XML

      Params: stringimportPath

      ID: 3 Save DXF file

       

       

      Params: 

      IFileData filedata

      Dictionary<double, List PCBI.MathUtils.PointD> outputElements

      IStep step

      string outptLayerName

      bool? unitInch

      bool unitInch

       

      ID: 4 Export file Asynchronus

       

       

      Params: 

      string name

      XMLSettingsOutput outputSetting

      List ILayer outputLayers

      IStep step

      bool param

       

      ID: 5 Export in DXF format

       

       

      Params: 

      string exportPath

      IStep step

      List ILayer outputLayers

      XMLSettingsOutput outputSetting

      bool param

      Example: parent.SendMessage("PCBI_DXFImport.PCBI_Connection", "script", 2, listParams);

 

  • "CncExport.PCBI_Connection"
    • ID: 1 Export SiebUndMeyer

       

      Params: 

      string exportPath

      PointD zeroOffset

      double settingDouble

      bool settingBool

      Dictionary<double, List PCBI.MathUtils.PointD>

      excellonSpecialOutput

      MoveRoutingDirection routingOptionDirection

      XMLSettings _settings

      string layerNames

       

      ID: 2 Export Excellon2

       

      Params: 

      string exportPath

      PointD zeroOffset

      double settingDouble

      bool settingBool

      Dictionary<double, List PCBI.MathUtils.PointD>

      MoveRoutingDirection routingOptionDirection

      XMLSettings _settings

      string layerNames

       

      ID: 3 Export Posalux

      Params:
      string
      exportPath
      PointD zeroOffset
      double settingDouble
      bool settingBool
      Dictionary<double, List PCBI.MathUtils.PointD>
      MoveRoutingDirection routingOptionDirection
      XMLSettings _settings
      string layerNames

           
      Example: parent.SendMessage("CncExport.PCBI_Connection", "script", 1, listParams);

 

  • "PCBI_MachineFormats_ImportExport.PCBI_Connection"
    • ID: 1 Export Viscom SI Params: string exportPath
      ID: 2 Export Viscom XML Params: string exportPath
      ID: 10 Export Parmi Params: string exportPath
      ID: 11 Export Goepel Params: string exportPath
      ID: 12 Export Modus Params: string exportPath
      ID: 13 Export Yamaha Params: string exportPath
      ID: 14 Export Tri Params: string exportPath
      ID: 15 Export Mycronic Data Params: string exportPath, bool exportTHTs

      Example: parent.SendMessage("PCBI_MachineFormats_ImportExport.PCBI_Connection", "script", 1, listParams);

    •  
  • "PCBI_Step_Export.PCBI_Connection"
    • ID: 1 Export Step file

      Params:

      string outputStepName
      List string exportOptions
      ExportOptionAll expOptionAll

      Example: parent.SendMessage("PCBI_Step_Export.PCBI_Connection", "script", 1, listParams);
    •  
  • "PCBI_AOICheck.PCBI_Connection"
    • ID: 1 run check without gui Params: string param
      ID: 10 open dialog and show it Params: string param
      Example: parent.SendMessage("PCBI_AOICheck.PCBI_Connection", "script", 1, new List object() { newAOI })

 

  • "PCBI_BareBoardDRC.PCBI_Connection"
    • ID: 1 open result file Params: string param
      ID: 2 show DRC dialog Params: string param
      ID: 3 run check and save result file Params: string fileName
      Example: parent.SendMessage("PCBI_BareBoardDRC.PCBI_Connection", "script", 1, new List object() { newDRC })

 

  • "PCBI_ComponentsAnalysis.PCBI_Connection"
    • ID: 1 Export HTML with all options Params: string exportPath
      Example: parent.SendMessage("PCBI_ComponentsAnalysis.PCBI_Connection", "script", 1, new List object(){ newAnalysis })

 

  • "PCBI_CreepageDistances.PCBI_Connection"
    • ID: 1 Export result in user DIR with given Nets Params: 

      string outputPath
      PCBI_NetGroups.NetGroup netGr
      PCBI_CreepageMeasure.XMLCreepageSettings settings

      Example: parent.SendMessage("PCBI_CreepageDistances.PCBI_Connection", "script", 1, listParams)

 

  • "PCBI_HazardAnalysis.PCBI_Connection"
    • ID: 1 Open the Dialog Params: string fileName
      ID: 2 Save FilePath Params:

      string fileName
      bool saveBothFormats

      Example: parent.SendMessage("PCBI_HazardAnalysis.PCBI_Connection", "script", 1, new List object() { newHazard })

 

  • "PCBI_TombstoneAnalysis.PCBI_Connection"
    • ID: 1 Export CSV in User Dir Params: string fileName
      Example: parent.SendMessage("PCBI_TombstoneAnalysis.PCBI_Connection", "script", 1, new List object() { newTombstone })
 
  • "PCBI_IDFFilter.PCBI_ConnectionImport"
    • ID: 1 Import IDF file

      Params: string importPath

      ID: 2  Export IDF file

      Params: string exportPath

      Example: parent.SendMessage("PCBI_IDFFilter.PCBI_ConnectionImport", "example", 2, new List object(){"path"}

 
  • "PCBI_NetGroups.PCBI_Connection"
    • ID: 1 Add Rule File

      Params: string importPath
      strong> IFileData importFileData

      ID: 2  Run rule check

      Params: string resultPath
      XMLSettings settings
      NetGroupList all net groups to check
      double first double is distance min outer, second double value is distance min inner and third double value is distance min 3D

      ID: 3 Open net group dialog

      Params: string info string

      ID: 4 Open net rule dialog

      Params: string step name

      Example: parent.SendMessage("PCBI_NetGroups.PCBI_Connection", "example", 4, new List  object(){"stepname"}