예제 #1
0
    def __init__(self, filename=None, parent=None):
        dialogMAIN_FORM.__init__(self, parent)
        self.databaseType = "idf"
        #
        freecadSettings = FreeCAD.ParamGet(
            "User parameter:BaseApp/Preferences/Mod/PCB")

        self.plytkaPCB_otworyV.setChecked(False)
        self.plytkaPCB_otworyV.setDisabled(True)

        self.packageByDecal = QtGui.QCheckBox(u"PCB-Decals")
        self.packageByDecal.setChecked(
            freecadSettings.GetBool("pcbDecals", True))
        self.layParts.addWidget(self.packageByDecal, 4, 1, 1, 1)
        #
        self.projektBRD = builtins.open(filename, "r").read().replace('\r', '')
        self.layersNames = self.getLayersNames()
        if FreeCAD.ParamGet(
                "User parameter:BaseApp/Preferences/Mod/PCB").GetBool(
                    "boardImportThickness", True):
            self.gruboscPlytki.setValue(self.getBoardThickness())
        ###
        self.generateLayers([
            "HEADER", "BOARD_OUTLINE", "DRILLED_HOLES", "PLACEMENT",
            "OTHER_OUTLINE", "ROUTE_KEEPOUT", "PLACE_KEEPOUT", "PLACE_REGION"
        ])  # blocked layers
        self.spisWarstw.sortItems(1)
예제 #2
0
 def __init__(self, filename=None, parent=None):
     dialogMAIN_FORM.__init__(self, parent)
     self.databaseType = "freepcb"
     #
     self.projektBRD = builtins.open(filename, "r").read().replace("\r\n", "\n").replace("\r", "\n")
     self.layersNames = self.getLayersNames()
     #
     self.generateLayers([i for i in range(31) if i not in [12, 13, 7, 8]])
     self.spisWarstw.sortItems(1)
예제 #3
0
 def __init__(self, filename=None, parent=None):
     dialogMAIN_FORM.__init__(self, parent)
     self.databaseType = "idf_v4"
     ###
     self.projektBRD = builtins.open(filename, "r").read().replace('\r', '')
     self.layersNames = self.getLayersNames()
     if FreeCAD.ParamGet(
             "User parameter:BaseApp/Preferences/Mod/PCB").GetBool(
                 "boardImportThickness", True):
         self.gruboscPlytki.setValue(self.getBoardThickness())
     ###
     self.generateLayers([])
     self.spisWarstw.sortItems(1)
예제 #4
0
 def __init__(self, filename=None, parent=None):
     dialogMAIN_FORM.__init__(self, parent)
     self.databaseType = "kicad_v4"
     #
     self.plytkaPCB_otworyH.setChecked(False)
     self.plytkaPCB_otworyH.setDisabled(True)
     #
     self.projektBRD = self.setProjectFile(filename)
     self.layersNames = self.getLayersNames()
     if FreeCAD.ParamGet(
             "User parameter:BaseApp/Preferences/Mod/PCB").GetBool(
                 "boardImportThickness", True):
         self.gruboscPlytki.setValue(self.getBoardThickness())
     ##
     self.generateLayers([44, 45])
     self.spisWarstw.sortItems(1)