def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Linear Drill:"] + valid) if "label" not in self.params: self.params["label"] = "Linear Drill" if "anchorPoint" not in self.params: self.params["anchorPoint"] = [0, 0, 0] if "cutDirection" not in self.params: self.params["cutDirection"] = cutDirection.cw if "depth" not in self.params: self.params["depth"] = 10 if "angle" not in self.params: self.params["angle"] = 0.0 if "numberOfHoles" not in self.params: self.params["numberOfHoles"] = 10 if "holeSpacing" not in self.params: self.params["holeSpacing"] = 10 if "holeDiameter" not in self.params: self.params["holeDiameter"] = 3.0
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Arc:"] + valid) if "label" not in self.params: self.params["label"] = "Arc" if "centerPoint" not in self.params: self.params["centerPoint"] = [0, 0, 0] if "diameter" not in self.params: self.params["diameter"] = 10.0 if "cutDirection" not in self.params: self.params["cutDirection"] = cutDirection.cw if "toolMovement" not in self.params: self.params["toolMovement"] = toolMovement.online if "depth" not in self.params: self.params["depth"] = 10 if "startAngle" not in self.params: self.params["startAngle"] = 0.0 if "endAngle" not in self.params: self.params["endAngle"] = 90.0
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Carve Diamond:"] + valid) if "label" not in self.params: self.params["label"] = "Carve Diamond" if "anchorPoint" not in self.params: self.params["anchorPoint"] = [0, 0, 0] if "anchorType" not in self.params: self.params["anchorType"] = anchorType.lowerleft if "height" not in self.params: self.params["height"] = 10 if "width" not in self.params: self.params["width"] = 10 if "depth" not in self.params: self.params["depth"] = 1 if "segments" not in self.params: self.params["segments"] = 10 if "border" not in self.params: self.params["border"] = True
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Circular Drill:"] + valid) if "label" not in self.params: self.params["label"] = "Circular Drill" if "centerPoint" not in self.params: self.params["centerPoint"] = [0, 0, 0] if "cutDirection" not in self.params: self.params["cutDirection"] = cutDirection.cw if "depth" not in self.params: self.params["depth"] = 10 if "circleDiameter" not in self.params: self.params["circleDiameter"] = 10.0 if "holeSpacing" not in self.params: self.params["holeSpacing"] = 10 if "holeDiameter" not in self.params: self.params["holeDiameter"] = 3.0 if "insideOnly" not in self.params: self.params["insideOnly"] = False if "staggerRows" not in self.params: self.params["staggerRows"] = False
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Circle:"] + valid) if "label" not in self.params: self.params["label"] = "Circle" if "centerPoint" not in self.params: self.params["centerPoint"] = [0, 0, 0] if "diameter" not in self.params: self.params["diameter"] = 10.0 if "pocketType" not in self.params: self.params["pocketType"] = pocketType.none if "cutDirection" not in self.params: self.params["cutDirection"] = cutDirection.cw if "toolMovement" not in self.params: self.params["toolMovement"] = toolMovement.online if "depth" not in self.params: self.params["depth"] = 10
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Rectangular Drill:"] + valid) if "label" not in self.params: self.params["label"] = "Rectangular Drill" if "anchorPoint" not in self.params: self.params["anchorPoint"] = [0, 0, 0] if "anchorType" not in self.params: self.params["anchorType"] = anchorType.lowerleft if "height" not in self.params: self.params["height"] = 10 if "width" not in self.params: self.params["width"] = 10 if "cutDirection" not in self.params: self.params["cutDirection"] = cutDirection.cw if "depth" not in self.params: self.params["depth"] = 10 if "holeSpacing" not in self.params: self.params["holeSpacing"] = 10 if "holeDiameter" not in self.params: self.params["holeDiameter"] = 3.0 if "insideOnly" not in self.params: self.params["insideOnly"] = False if "perimeterOnly" not in self.params: self.params["perimeterOnly"] = False if "staggerRows" not in self.params: self.params["staggerRows"] = False
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Path:"] + valid) if "label" not in self.params: self.params["label"] = "Path" if "points" not in self.params: self.params["points"] = [[0, 0], [10, 10]] if "toolMovement" not in self.params: self.params["toolMovement"] = toolMovement.online if "depth" not in self.params: self.params["depth"] = 10 if "startHeight" not in self.params: self.params["startHeight"] = 0.0
def __init__(self, parent, params): cncObject.__init__(self, parent) self.params = params.copy() valid = validateKeys(self.params.keys(), validKeys) if valid is not None: self.createErrors(["Parameter errors for Rectangle:"] + valid) if "label" not in self.params: self.params["label"] = "Rectangle" if "anchorPoint" not in self.params: self.params["anchorPoint"] = [0, 0, 0] if "anchorType" not in self.params: self.params["anchorType"] = anchorType.lowerleft if "pocketType" not in self.params: self.params["pocketType"] = pocketType.none if "cutDirection" not in self.params: self.params["cutDirection"] = cutDirection.cw if "toolMovement" not in self.params: self.params["toolMovement"] = toolMovement.online if "angle" not in self.params: self.params["angle"] = 0.0 if "height" not in self.params: self.params["height"] = 10 if "width" not in self.params: self.params["width"] = 10 if "depth" not in self.params: self.params["depth"] = 10