removed translation from property descriptions (wrong to do it there anyway) - issue #2524
This commit is contained in:
@@ -38,7 +38,7 @@ except AttributeError:
|
||||
|
||||
class Comment:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyString","Comment","Path",translate("Comment","Comment or note for CNC program"))
|
||||
obj.addProperty("App::PropertyString","Comment","Path","Comment or note for CNC program")
|
||||
obj.Proxy = self
|
||||
mode = 2
|
||||
obj.setEditorMode('Placement',mode)
|
||||
|
||||
@@ -41,11 +41,11 @@ class ObjectCompoundExtended:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyString","Description", "Path",translate("PathCompoundExtended","An optional description of this compounded operation"))
|
||||
# obj.addProperty("App::PropertySpeed", "FeedRate", "Path",translate("PathCompoundExtended","The feed rate of the paths in these compounded operations"))
|
||||
# obj.addProperty("App::PropertyFloat", "SpindleSpeed", "Path",translate("PathCompoundExtended","The spindle speed, in revolutions per minute, of the tool used in these compounded operations"))
|
||||
obj.addProperty("App::PropertyLength","SafeHeight", "Path",translate("PathCompoundExtended","The safe height for this operation"))
|
||||
obj.addProperty("App::PropertyLength","RetractHeight","Path",translate("PathCompoundExtended","The retract height, above top surface of part, between compounded operations inside clamping area"))
|
||||
obj.addProperty("App::PropertyString","Description", "Path","An optional description of this compounded operation")
|
||||
# obj.addProperty("App::PropertySpeed", "FeedRate", "Path","The feed rate of the paths in these compounded operations")
|
||||
# obj.addProperty("App::PropertyFloat", "SpindleSpeed", "Path","The spindle speed, in revolutions per minute, of the tool used in these compounded operations")
|
||||
obj.addProperty("App::PropertyLength","SafeHeight", "Path","The safe height for this operation")
|
||||
obj.addProperty("App::PropertyLength","RetractHeight","Path","The retract height, above top surface of part, between compounded operations inside clamping area")
|
||||
obj.Proxy = self
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
@@ -41,7 +41,7 @@ class ObjectPathCopy:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLink","Base","Path",translate("PathCopy","The path to be copied"))
|
||||
obj.addProperty("App::PropertyLink","Base","Path","The path to be copied")
|
||||
obj.Proxy = self
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
@@ -41,9 +41,9 @@ class ObjectDressup:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLink","Base","Path",translate("PathDressup","The base path to modify"))
|
||||
obj.addProperty("App::PropertyInteger","Position","Path",translate("PathDressup","The position of this dressup in the base path"))
|
||||
obj.addProperty("Path::PropertyPath","Modification","Path",translate("PathDressup","The modification to be added"))
|
||||
obj.addProperty("App::PropertyLink","Base","Path","The base path to modify")
|
||||
obj.addProperty("App::PropertyInteger","Position","Path","The position of this dressup in the base path")
|
||||
obj.addProperty("Path::PropertyPath","Modification","Path","The modification to be added")
|
||||
obj.Proxy = self
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
@@ -46,24 +46,24 @@ class ObjectDrilling:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
#obj.addProperty("App::PropertyVector","StartPoint","Path",translate("PathProfile","The start position of the drilling"))
|
||||
#obj.addProperty("App::PropertyVector","StartPoint","Path","The start position of the drilling")
|
||||
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path",translate("Parent Object","The base geometry of this toolpath"))
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path","The base geometry of this toolpath")
|
||||
obj.addProperty("App::PropertyVectorList","locations","Path","The drilling locations")
|
||||
|
||||
obj.addProperty("App::PropertyLength", "PeckDepth", "Drilling", translate("PeckDepth","Incremental Drill depth before retracting to clear chips"))
|
||||
obj.addProperty("App::PropertyLength", "PeckDepth", "Drilling","Incremental Drill depth before retracting to clear chips")
|
||||
#obj.PeckDepth = (0,0,1000,1)
|
||||
obj.addProperty("App::PropertyDistance", "ClearanceHeight", "Drilling", translate("Clearance Height","The height needed to clear clamps and obstructions"))
|
||||
obj.addProperty("App::PropertyDistance", "FinalDepth", "Drilling", translate("Final Depth","Final Depth of Tool- lowest value in Z"))
|
||||
obj.addProperty("App::PropertyDistance", "RetractHeight", "Drilling", translate("Retract Height","The height where feed starts and height during retract tool when path is finished"))
|
||||
obj.addProperty("App::PropertyLength", "VertFeed", "Feed",translate("Vert Feed","Feed rate for vertical moves in Z"))
|
||||
obj.addProperty("App::PropertyDistance", "ClearanceHeight", "Drilling", "The height needed to clear clamps and obstructions")
|
||||
obj.addProperty("App::PropertyDistance", "FinalDepth", "Drilling","Final Depth of Tool- lowest value in Z")
|
||||
obj.addProperty("App::PropertyDistance", "RetractHeight", "Drilling","The height where feed starts and height during retract tool when path is finished")
|
||||
obj.addProperty("App::PropertyLength", "VertFeed", "Feed","Feed rate for vertical moves in Z")
|
||||
|
||||
#obj.addProperty("App::PropertySpeed", "HorizFeed", "Feed",translate("Horiz Feed","Feed rate for horizontal moves")) #not needed for drilling
|
||||
#obj.addProperty("App::PropertySpeed", "HorizFeed", "Feed","Feed rate for horizontal moves") #not needed for drilling
|
||||
|
||||
obj.addProperty("App::PropertyString","Comment","Path",translate("PathProject","An optional comment for this profile"))
|
||||
obj.addProperty("App::PropertyBool","Active","Path",translate("Active","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyString","Comment","Path","An optional comment for this profile")
|
||||
obj.addProperty("App::PropertyBool","Active","Path","Make False, to prevent operation from generating code")
|
||||
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool",translate("PathProfile","The tool number in use"))
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool","The tool number in use")
|
||||
obj.ToolNumber = (0,0,1000,1)
|
||||
obj.setEditorMode('ToolNumber',1) #make this read only
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@ except AttributeError:
|
||||
|
||||
class Fixture:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyEnumeration", "Fixture", "Fixture Parameters", translate("Fixture Offset", "Fixture Offset Number"))
|
||||
obj.addProperty("App::PropertyEnumeration", "Fixture", "Fixture Parameters","Fixture Offset Number")
|
||||
obj.Fixture=['G53','G54','G55','G56','G57','G58','G59','G59.1', 'G59.2', 'G59.3', 'G59.4', 'G59.5','G59.6','G59.7', 'G59.8', 'G59.9']
|
||||
obj.addProperty("App::PropertyBool","Active","Sequence Parameters",translate("Active","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyBool","Active","Sequence Parameters","Make False, to prevent operation from generating code")
|
||||
|
||||
obj.Proxy = self
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class FromShape:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLink","Base","Shape",translate("Shape Object","The base Shape of this toolpath"))
|
||||
obj.addProperty("App::PropertyLink","Base","Shape","The base Shape of this toolpath")
|
||||
obj.Proxy = self
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
@@ -41,8 +41,8 @@ class ObjectHop:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLink","NextObject","Path",translate("PathHop","The object to be reached by this hop"))
|
||||
obj.addProperty("App::PropertyDistance","HopHeight","Path",translate("PathHop","The Z height of the hop"))
|
||||
obj.addProperty("App::PropertyLink","NextObject","Path","The object to be reached by this hop")
|
||||
obj.addProperty("App::PropertyDistance","HopHeight","Path","The Z height of the hop")
|
||||
obj.Proxy = self
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
@@ -40,50 +40,50 @@ except AttributeError:
|
||||
|
||||
class PathProfile:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path",translate("Parent Object","The base geometry of this toolpath"))
|
||||
obj.addProperty("App::PropertyLinkSub","StartPoint", "Path", translate("Start Point","Linked Start Point of Profile"))
|
||||
obj.addProperty("App::PropertyLinkSub","EndPoint", "Path", translate("End Point","Linked End Point of Profile"))
|
||||
obj.addProperty("App::PropertyBool","Active","Path",translate("Active","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyString","Comment","Path",translate("Comment","An optional comment for this profile"))
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path","The base geometry of this toolpath")
|
||||
obj.addProperty("App::PropertyLinkSub","StartPoint", "Path","Linked Start Point of Profile")
|
||||
obj.addProperty("App::PropertyLinkSub","EndPoint", "Path","Linked End Point of Profile")
|
||||
obj.addProperty("App::PropertyBool","Active","Path","Make False, to prevent operation from generating code")
|
||||
obj.addProperty("App::PropertyString","Comment","Path","An optional comment for this profile")
|
||||
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool",translate("PathProfile","The tool number in use"))
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool","The tool number in use")
|
||||
obj.ToolNumber = (0,0,1000,1)
|
||||
obj.setEditorMode('ToolNumber',1) #make this read only
|
||||
#Depth Properties
|
||||
obj.addProperty("App::PropertyDistance", "ClearanceHeight", "Depth", translate("Clearance Height","The height needed to clear clamps and obstructions"))
|
||||
obj.addProperty("App::PropertyLength", "StepDown", "Depth", translate("StepDown","Incremental Step Down of Tool"))
|
||||
# obj.addProperty("App::PropertyBool","UseStartDepth","Depth",translate("Use Start Depth","make True, if manually specifying a Start Start Depth"))
|
||||
obj.addProperty("App::PropertyDistance", "StartDepth", "Depth", translate("Start Depth","Starting Depth of Tool- first cut depth in Z"))
|
||||
obj.addProperty("App::PropertyDistance", "FinalDepth", "Depth", translate("Final Depth","Final Depth of Tool- lowest value in Z"))
|
||||
obj.addProperty("App::PropertyDistance", "RetractHeight", "Depth", translate("Retract Height","The height desired to retract tool when path is finished"))
|
||||
obj.addProperty("App::PropertyDistance", "ClearanceHeight", "Depth","The height needed to clear clamps and obstructions")
|
||||
obj.addProperty("App::PropertyLength", "StepDown", "Depth","Incremental Step Down of Tool")
|
||||
# obj.addProperty("App::PropertyBool","UseStartDepth","Depth","make True, if manually specifying a Start Start Depth")
|
||||
obj.addProperty("App::PropertyDistance", "StartDepth", "Depth","Starting Depth of Tool- first cut depth in Z")
|
||||
obj.addProperty("App::PropertyDistance", "FinalDepth", "Depth","Final Depth of Tool- lowest value in Z")
|
||||
obj.addProperty("App::PropertyDistance", "RetractHeight", "Depth","The height desired to retract tool when path is finished")
|
||||
|
||||
#Feed Properties
|
||||
obj.addProperty("App::PropertyLength", "VertFeed", "Feed",translate("Vert Feed","Feed rate (in units per minute) for vertical moves in Z"))
|
||||
obj.addProperty("App::PropertyLength", "HorizFeed", "Feed",translate("Horiz Feed","Feed rate (in units per minute) for horizontal moves"))
|
||||
obj.addProperty("App::PropertyLength", "VertFeed", "Feed","Feed rate (in units per minute) for vertical moves in Z")
|
||||
obj.addProperty("App::PropertyLength", "HorizFeed", "Feed","Feed rate (in units per minute) for horizontal moves")
|
||||
|
||||
#Profile Properties
|
||||
obj.addProperty("App::PropertyEnumeration", "Side", "Profile", translate("Side","Side of edge that tool should cut"))
|
||||
obj.addProperty("App::PropertyEnumeration", "Side", "Profile","Side of edge that tool should cut")
|
||||
obj.Side = ['left','right','on'] #side of profile that cutter is on in relation to direction of profile
|
||||
obj.addProperty("App::PropertyEnumeration", "Direction", "Profile",translate("Direction", "The direction that the toolpath should go around the part ClockWise CW or CounterClockWise CCW"))
|
||||
obj.addProperty("App::PropertyEnumeration", "Direction", "Profile","The direction that the toolpath should go around the part ClockWise CW or CounterClockWise CCW")
|
||||
obj.Direction = ['CW','CCW'] #this is the direction that the profile runs
|
||||
obj.addProperty("App::PropertyBool","UseComp","Profile",translate("Use Cutter Comp","make True, if using Cutter Radius Compensation"))
|
||||
obj.addProperty("App::PropertyIntegerList","Edgelist","Profile",translate("Edge List", "List of edges selected"))
|
||||
obj.addProperty("App::PropertyDistance", "OffsetExtra", "Profile",translate("OffsetExtra","Extra value to stay away from final profile- good for roughing toolpath"))
|
||||
# obj.addProperty("App::PropertyLength", "SegLen", "Profile",translate("Seg Len","Tesselation value for tool paths made from beziers, bsplines, and ellipses"))
|
||||
obj.addProperty("App::PropertyBool","UseComp","Profile","make True, if using Cutter Radius Compensation")
|
||||
obj.addProperty("App::PropertyIntegerList","Edgelist","Profile","List of edges selected")
|
||||
obj.addProperty("App::PropertyDistance", "OffsetExtra", "Profile","Extra value to stay away from final profile- good for roughing toolpath")
|
||||
# obj.addProperty("App::PropertyLength", "SegLen", "Profile","Tesselation value for tool paths made from beziers, bsplines, and ellipses")
|
||||
|
||||
# #Start Point Properties
|
||||
obj.addProperty("App::PropertyString","StartPtName","Profile",translate("Start Point","The name of the start point of this path"))
|
||||
obj.addProperty("App::PropertyBool","UseStartPt","Profile",translate("Use Start Point","Make True, if specifying a Start Point"))
|
||||
# obj.addProperty("App::PropertyLength", "ExtendAtStart", "Profile", translate("extend at start", "extra length of tool path before start of part edge"))
|
||||
# obj.addProperty("App::PropertyLength", "LeadInLineLen", "Profile", translate("lead in length","length of straight segment of toolpath that comes in at angle to first part edge"))
|
||||
obj.addProperty("App::PropertyString","StartPtName","Profile","The name of the start point of this path")
|
||||
obj.addProperty("App::PropertyBool","UseStartPt","Profile","Make True, if specifying a Start Point")
|
||||
# obj.addProperty("App::PropertyLength", "ExtendAtStart", "Profile", "extra length of tool path before start of part edge")
|
||||
# obj.addProperty("App::PropertyLength", "LeadInLineLen", "Profile","length of straight segment of toolpath that comes in at angle to first part edge")
|
||||
|
||||
# #End Point Properties
|
||||
obj.addProperty("App::PropertyString","EndPtName","Profile",translate("End Point","The name of the end point of this path"))
|
||||
obj.addProperty("App::PropertyBool","UseEndPt","Profile",translate("Use End Point","Make True, if specifying an End Point"))
|
||||
# obj.addProperty("App::PropertyLength", "ExtendAtEnd", "Profile", translate("extend at end","extra length of tool path after end of part edge"))
|
||||
# obj.addProperty("App::PropertyLength", "LeadOutLineLen", "Profile", translate("lead_out_line_len","length of straight segment of toolpath that comes in at angle to last edge selected"))
|
||||
obj.addProperty("App::PropertyString","EndPtName","Profile","The name of the end point of this path")
|
||||
obj.addProperty("App::PropertyBool","UseEndPt","Profile","Make True, if specifying an End Point")
|
||||
# obj.addProperty("App::PropertyLength", "ExtendAtEnd", "Profile","extra length of tool path after end of part edge")
|
||||
# obj.addProperty("App::PropertyLength", "LeadOutLineLen", "Profile","length of straight segment of toolpath that comes in at angle to last edge selected")
|
||||
|
||||
# obj.addProperty("App::PropertyDistance", "RollRadius", "Profile", translate("Roll Radius","Radius at start and end"))
|
||||
# obj.addProperty("App::PropertyDistance", "RollRadius", "Profile", "Radius at start and end")
|
||||
|
||||
obj.Proxy = self
|
||||
|
||||
|
||||
@@ -39,10 +39,10 @@ except AttributeError:
|
||||
|
||||
class LoadTool:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyIntegerConstraint", "ToolNumber","Tool", translate( "Tool Number", "The active tool"))
|
||||
obj.addProperty("App::PropertyIntegerConstraint", "ToolNumber","Tool","The active tool")
|
||||
obj.ToolNumber = (0,0,10000,1)
|
||||
obj.addProperty("App::PropertyFloat", "SpindleSpeed", "Tool", translate("Spindle Speed","The speed of the cutting spindle in RPM"))
|
||||
obj.addProperty("App::PropertyEnumeration", "SpindleDir", "Tool", translate("Spindle Dir","Direction of spindle rotation"))
|
||||
obj.addProperty("App::PropertyFloat", "SpindleSpeed", "Tool","The speed of the cutting spindle in RPM")
|
||||
obj.addProperty("App::PropertyEnumeration", "SpindleDir", "Tool","Direction of spindle rotation")
|
||||
obj.SpindleDir = ['Forward','Reverse']
|
||||
obj.Proxy = self
|
||||
mode = 2
|
||||
|
||||
@@ -41,26 +41,26 @@ except AttributeError:
|
||||
class Machine:
|
||||
def __init__(self,obj):
|
||||
|
||||
obj.addProperty("App::PropertyString", "MachineName","Base",translate("Path_Machine","Name of the Machine that will use the CNC program"))
|
||||
obj.addProperty("App::PropertyString", "MachineName","Base","Name of the Machine that will use the CNC program")
|
||||
|
||||
obj.addProperty("App::PropertyFile", "PostProcessor", "CodeOutput", translate("Path_Machine","Select the Post Processor file for this machine"))
|
||||
obj.addProperty("App::PropertyFile", "PostProcessor", "CodeOutput", "Select the Post Processor file for this machine")
|
||||
obj.setEditorMode("PostProcessor",1) #set to read only
|
||||
obj.addProperty("App::PropertyEnumeration", "MachineUnits","CodeOutput", translate("Path_Machine","Units that the machine works in, ie Metric or Inch"))
|
||||
obj.addProperty("App::PropertyEnumeration", "MachineUnits","CodeOutput", "Units that the machine works in, ie Metric or Inch")
|
||||
obj.MachineUnits=['Metric', 'Inch']
|
||||
|
||||
obj.addProperty("Path::PropertyTooltable","Tooltable", "Base",translate("Path_Machine","The tooltable used for this CNC program"))
|
||||
obj.addProperty("Path::PropertyTooltable","Tooltable", "Base","The tooltable used for this CNC program")
|
||||
|
||||
obj.addProperty("App::PropertyDistance", "X_Max", "Limits", translate("Path_Machine","The Maximum distance in X the machine can travel"))
|
||||
obj.addProperty("App::PropertyDistance", "Y_Max", "Limits", translate("Path_Machine","The Maximum distance in X the machine can travel"))
|
||||
obj.addProperty("App::PropertyDistance", "Z_Max", "Limits", translate("Path_Machine","The Maximum distance in X the machine can travel"))
|
||||
obj.addProperty("App::PropertyDistance", "X_Max", "Limits", "The Maximum distance in X the machine can travel")
|
||||
obj.addProperty("App::PropertyDistance", "Y_Max", "Limits", "The Maximum distance in X the machine can travel")
|
||||
obj.addProperty("App::PropertyDistance", "Z_Max", "Limits", "The Maximum distance in X the machine can travel")
|
||||
|
||||
obj.addProperty("App::PropertyDistance", "X_Min", "Limits", translate("Path_Machine","The Minimum distance in X the machine can travel"))
|
||||
obj.addProperty("App::PropertyDistance", "Y_Min", "Limits", translate("Path_Machine","The Minimum distance in X the machine can travel"))
|
||||
obj.addProperty("App::PropertyDistance", "Z_Min", "Limits", translate("Path_Machine","The Minimum distance in X the machine can travel"))
|
||||
obj.addProperty("App::PropertyDistance", "X_Min", "Limits", "The Minimum distance in X the machine can travel")
|
||||
obj.addProperty("App::PropertyDistance", "Y_Min", "Limits", "The Minimum distance in X the machine can travel")
|
||||
obj.addProperty("App::PropertyDistance", "Z_Min", "Limits", "The Minimum distance in X the machine can travel")
|
||||
|
||||
obj.addProperty("App::PropertyDistance", "X", "HomePosition", translate("Path_Machine","Home position of machine, in X (mainly for visualization)"))
|
||||
obj.addProperty("App::PropertyDistance", "Y", "HomePosition", translate("Path_Machine","Home position of machine, in Y (mainly for visualization)"))
|
||||
obj.addProperty("App::PropertyDistance", "Z", "HomePosition", translate("Path_Machine","Home position of machine, in Z (mainly for visualization)"))
|
||||
obj.addProperty("App::PropertyDistance", "X", "HomePosition", "Home position of machine, in X (mainly for visualization)")
|
||||
obj.addProperty("App::PropertyDistance", "Y", "HomePosition", "Home position of machine, in Y (mainly for visualization)")
|
||||
obj.addProperty("App::PropertyDistance", "Z", "HomePosition", "Home position of machine, in Z (mainly for visualization)")
|
||||
|
||||
obj.Proxy = self
|
||||
mode = 2
|
||||
@@ -109,7 +109,7 @@ class Machine:
|
||||
class _ViewProviderMachine:
|
||||
def __init__(self,vobj):
|
||||
vobj.Proxy = self
|
||||
vobj.addProperty("App::PropertyBool","ShowLimits","Path",translate("ShowMinMaxTravel","Switch the machine max and minimum travel bounding box on/off".decode("utf8")))
|
||||
vobj.addProperty("App::PropertyBool","ShowLimits","Path","Switch the machine max and minimum travel bounding box on/off")
|
||||
mode = 2
|
||||
vobj.setEditorMode('LineWidth',mode)
|
||||
vobj.setEditorMode('MarkerColor',mode)
|
||||
|
||||
@@ -38,9 +38,9 @@ except AttributeError:
|
||||
|
||||
class Plane:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyEnumeration", "SelectionPlane","Plane", translate( "Selection Plane", "Orientation plane of CNC path"))
|
||||
obj.addProperty("App::PropertyEnumeration", "SelectionPlane","Plane","Orientation plane of CNC path")
|
||||
obj.SelectionPlane=['XY', 'XZ', 'YZ']
|
||||
obj.addProperty("App::PropertyBool","Active","Sequence Parameters",translate("Active","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyBool","Active","Sequence Parameters","Make False, to prevent operation from generating code")
|
||||
obj.Proxy = self
|
||||
|
||||
def execute(self,obj):
|
||||
|
||||
@@ -74,38 +74,37 @@ class ObjectPocket:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path",translate("PathProject","The base geometry of this object"))
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool",
|
||||
translate("PathProfile","The tool number in use"))
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path","The base geometry of this object")
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool","The tool number in use")
|
||||
obj.ToolNumber = (0, 0, 1000, 0)
|
||||
|
||||
|
||||
obj.addProperty("App::PropertyFloat", "ClearanceHeight", "Pocket", translate("PathProject","The height needed to clear clamps and obstructions"))
|
||||
obj.addProperty("App::PropertyFloatConstraint", "StepDown", "Pocket", translate("PathProject","Incremental Step Down of Tool"))
|
||||
obj.addProperty("App::PropertyFloat", "ClearanceHeight", "Pocket","The height needed to clear clamps and obstructions")
|
||||
obj.addProperty("App::PropertyFloatConstraint", "StepDown", "Pocket","Incremental Step Down of Tool")
|
||||
obj.StepDown = (0.0, 0.0, 100.0, 1.0)
|
||||
|
||||
obj.addProperty("App::PropertyFloat", "StartDepth", "Pocket", translate("PathProject","Starting Depth of Tool- first cut depth in Z"))
|
||||
obj.addProperty("App::PropertyBool","UseStartDepth","Pocket",translate("PathProject","make True, if manually specifying a Start Start Depth"))
|
||||
obj.addProperty("App::PropertyFloat", "FinalDepth", "Pocket", translate("PathProject","Final Depth of Tool- lowest value in Z"))
|
||||
obj.addProperty("App::PropertyFloat", "RetractHeight", "Pocket", translate("PathProject","The height desired to retract tool when path is finished"))
|
||||
obj.addProperty("App::PropertyFloat", "StartDepth", "Pocket", "Starting Depth of Tool- first cut depth in Z")
|
||||
obj.addProperty("App::PropertyBool","UseStartDepth","Pocket","make True, if manually specifying a Start Start Depth")
|
||||
obj.addProperty("App::PropertyFloat", "FinalDepth", "Pocket", "Final Depth of Tool- lowest value in Z")
|
||||
obj.addProperty("App::PropertyFloat", "RetractHeight", "Pocket", "The height desired to retract tool when path is finished")
|
||||
|
||||
obj.addProperty("App::PropertyEnumeration", "CutMode", "Pocket",translate("PathProject", "The direction that the toolpath should go around the part ClockWise CW or CounterClockWise CCW"))
|
||||
obj.addProperty("App::PropertyEnumeration", "CutMode", "Pocket","The direction that the toolpath should go around the part ClockWise CW or CounterClockWise CCW")
|
||||
obj.CutMode = ['Climb','Conventional']
|
||||
obj.addProperty("App::PropertyFloat", "MaterialAllowance", "Pocket", translate("PathProject","Amount of material to leave"))
|
||||
obj.addProperty("App::PropertyFloat", "FinishDepth", "Pocket", translate("PathProject","Maximum material removed on final pass."))
|
||||
obj.addProperty("App::PropertyFloat", "MaterialAllowance", "Pocket", "Amount of material to leave")
|
||||
obj.addProperty("App::PropertyFloat", "FinishDepth", "Pocket", "Maximum material removed on final pass.")
|
||||
|
||||
obj.addProperty("App::PropertyEnumeration", "StartAt", "Pocket",translate("PathProject", "Start pocketing at center or boundary"))
|
||||
obj.addProperty("App::PropertyEnumeration", "StartAt", "Pocket","Start pocketing at center or boundary")
|
||||
obj.StartAt = ['Center', 'Edge']
|
||||
|
||||
obj.addProperty("App::PropertyFloatConstraint", "VertFeed", "Feed",translate("Vert Feed","Feed rate for vertical moves in Z"))
|
||||
obj.addProperty("App::PropertyFloatConstraint", "VertFeed", "Feed","Feed rate for vertical moves in Z")
|
||||
obj.VertFeed = (0.0, 0.0, 100000.0, 1.0)
|
||||
|
||||
obj.addProperty("App::PropertyFloatConstraint", "HorizFeed", "Feed",translate("Horiz Feed","Feed rate for horizontal moves"))
|
||||
obj.addProperty("App::PropertyFloatConstraint", "HorizFeed", "Feed","Feed rate for horizontal moves")
|
||||
obj.HorizFeed = (0.0, 0.0, 100000.0, 1.0)
|
||||
|
||||
|
||||
obj.addProperty("App::PropertyBool","Active","Path",translate("PathProject","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyString","Comment","Path",translate("PathProject","An optional comment for this profile"))
|
||||
obj.addProperty("App::PropertyBool","Active","Path","Make False, to prevent operation from generating code")
|
||||
obj.addProperty("App::PropertyString","Comment","Path","An optional comment for this profile")
|
||||
|
||||
obj.Proxy = self
|
||||
|
||||
|
||||
@@ -42,53 +42,53 @@ except AttributeError:
|
||||
class ObjectProfile:
|
||||
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path",translate("Parent Object","The base geometry of this toolpath"))
|
||||
obj.addProperty("App::PropertyLinkSub","Face1","Path",translate("Face1","First Selected Face to help determine where final depth of tool path is"))
|
||||
obj.addProperty("App::PropertyLinkSub","Face2","Path",translate("Face2","Second Selected Face to help determine where the upper level of tool path is"))
|
||||
obj.addProperty("App::PropertyBool","PathClosed","Path",translate("Path Closed","If the toolpath is a closed polyline this is True"))
|
||||
obj.addProperty("App::PropertyLinkSub","Edge1","Path",translate("Edge 1","First Selected Edge to help determine which geometry to make a toolpath around"))
|
||||
obj.addProperty("App::PropertyLinkSub","Edge2","Path",translate("Edge 2","Second Selected Edge to help determine which geometry to make a toolpath around"))
|
||||
obj.addProperty("App::PropertyBool","Active","Path",translate("Active","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyBool","UsePlacements","Path",translate("Use Placements","make True, if using the profile operation placement properties to transform toolpath in post processor"))
|
||||
obj.addProperty("App::PropertyLinkSub","Base","Path","The base geometry of this toolpath")
|
||||
obj.addProperty("App::PropertyLinkSub","Face1","Path","First Selected Face to help determine where final depth of tool path is")
|
||||
obj.addProperty("App::PropertyLinkSub","Face2","Path","Second Selected Face to help determine where the upper level of tool path is")
|
||||
obj.addProperty("App::PropertyBool","PathClosed","Path","If the toolpath is a closed polyline this is True")
|
||||
obj.addProperty("App::PropertyLinkSub","Edge1","Path","First Selected Edge to help determine which geometry to make a toolpath around")
|
||||
obj.addProperty("App::PropertyLinkSub","Edge2","Path","Second Selected Edge to help determine which geometry to make a toolpath around")
|
||||
obj.addProperty("App::PropertyBool","Active","Path","Make False, to prevent operation from generating code")
|
||||
obj.addProperty("App::PropertyBool","UsePlacements","Path","make True, if using the profile operation placement properties to transform toolpath in post processor")
|
||||
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool",translate("PathProfile","The tool number in use"))
|
||||
obj.addProperty("App::PropertyIntegerConstraint","ToolNumber","Tool","The tool number in use")
|
||||
obj.ToolNumber = (0,0,1000,1)
|
||||
obj.setEditorMode('ToolNumber',1) #make this read only
|
||||
|
||||
#Depth Properties
|
||||
obj.addProperty("App::PropertyDistance", "ClearanceHeight", "Depth", translate("Clearance Height","The height needed to clear clamps and obstructions"))
|
||||
obj.addProperty("App::PropertyLength", "StepDown", "Depth", translate("StepDown","Incremental Step Down of Tool"))
|
||||
obj.addProperty("App::PropertyBool","UseStartDepth","Depth",translate("Use Start Depth","make True, if manually specifying a Start Start Depth"))
|
||||
obj.addProperty("App::PropertyDistance", "StartDepth", "Depth", translate("Start Depth","Starting Depth of Tool- first cut depth in Z"))
|
||||
obj.addProperty("App::PropertyDistance", "FinalDepth", "Depth", translate("Final Depth","Final Depth of Tool- lowest value in Z"))
|
||||
obj.addProperty("App::PropertyDistance", "RetractHeight", "Depth", translate("Retract Height","The height desired to retract tool when path is finished"))
|
||||
obj.addProperty("App::PropertyString","Comment","Path",translate("Comment","An optional comment for this profile"))
|
||||
obj.addProperty("App::PropertyDistance", "ClearanceHeight", "Depth","The height needed to clear clamps and obstructions")
|
||||
obj.addProperty("App::PropertyLength", "StepDown", "Depth", "Incremental Step Down of Tool")
|
||||
obj.addProperty("App::PropertyBool","UseStartDepth","Depth","make True, if manually specifying a Start Start Depth")
|
||||
obj.addProperty("App::PropertyDistance", "StartDepth", "Depth", "Starting Depth of Tool- first cut depth in Z")
|
||||
obj.addProperty("App::PropertyDistance", "FinalDepth", "Depth", "Final Depth of Tool- lowest value in Z")
|
||||
obj.addProperty("App::PropertyDistance", "RetractHeight", "Depth","The height desired to retract tool when path is finished")
|
||||
obj.addProperty("App::PropertyString","Comment","Path","An optional comment for this profile")
|
||||
|
||||
#Feed Properties
|
||||
obj.addProperty("App::PropertySpeed", "VertFeed", "Feed",translate("Vert Feed","Feed rate for vertical moves in Z"))
|
||||
obj.addProperty("App::PropertySpeed", "HorizFeed", "Feed",translate("Horiz Feed","Feed rate for horizontal moves"))
|
||||
obj.addProperty("App::PropertySpeed", "VertFeed", "Feed","Feed rate for vertical moves in Z")
|
||||
obj.addProperty("App::PropertySpeed", "HorizFeed", "Feed","Feed rate for horizontal moves")
|
||||
|
||||
#Start Point Properties
|
||||
obj.addProperty("App::PropertyVector","StartPoint","Start Point",translate("Start Point","The start point of this path"))
|
||||
obj.addProperty("App::PropertyBool","UseStartPoint","Start Point",translate("Use Start Point","make True, if specifying a Start Point"))
|
||||
obj.addProperty("App::PropertyLength", "ExtendAtStart", "Start Point", translate("extend at start", "extra length of tool path before start of part edge"))
|
||||
obj.addProperty("App::PropertyLength", "LeadInLineLen", "Start Point", translate("lead in length","length of straight segment of toolpath that comes in at angle to first part edge"))
|
||||
obj.addProperty("App::PropertyVector","StartPoint","Start Point","The start point of this path")
|
||||
obj.addProperty("App::PropertyBool","UseStartPoint","Start Point","make True, if specifying a Start Point")
|
||||
obj.addProperty("App::PropertyLength", "ExtendAtStart", "Start Point","extra length of tool path before start of part edge")
|
||||
obj.addProperty("App::PropertyLength", "LeadInLineLen", "Start Point","length of straight segment of toolpath that comes in at angle to first part edge")
|
||||
|
||||
#End Point Properties
|
||||
obj.addProperty("App::PropertyBool","UseEndPoint","End Point",translate("Use End Point","make True, if specifying an End Point"))
|
||||
obj.addProperty("App::PropertyLength", "ExtendAtEnd", "End Point", translate("extend at end","extra length of tool path after end of part edge"))
|
||||
obj.addProperty("App::PropertyLength", "LeadOutLineLen", "End Point", translate("lead_out_line_len","length of straight segment of toolpath that comes in at angle to last part edge"))
|
||||
obj.addProperty("App::PropertyVector","EndPoint","End Point",translate("End Point","The end point of this path"))
|
||||
obj.addProperty("App::PropertyBool","UseEndPoint","End Point","make True, if specifying an End Point")
|
||||
obj.addProperty("App::PropertyLength", "ExtendAtEnd", "End Point","extra length of tool path after end of part edge")
|
||||
obj.addProperty("App::PropertyLength", "LeadOutLineLen", "End Point","length of straight segment of toolpath that comes in at angle to last part edge")
|
||||
obj.addProperty("App::PropertyVector","EndPoint","End Point","The end point of this path")
|
||||
|
||||
#Profile Properties
|
||||
obj.addProperty("App::PropertyEnumeration", "Side", "Profile", translate("Side","Side of edge that tool should cut"))
|
||||
obj.addProperty("App::PropertyEnumeration", "Side", "Profile","Side of edge that tool should cut")
|
||||
obj.Side = ['Left','Right','On'] #side of profile that cutter is on in relation to direction of profile
|
||||
obj.addProperty("App::PropertyEnumeration", "Direction", "Profile",translate("Direction", "The direction that the toolpath should go around the part ClockWise CW or CounterClockWise CCW"))
|
||||
obj.addProperty("App::PropertyEnumeration", "Direction", "Profile","The direction that the toolpath should go around the part ClockWise CW or CounterClockWise CCW")
|
||||
obj.Direction = ['CW','CCW'] #this is the direction that the profile runs
|
||||
|
||||
obj.addProperty("App::PropertyDistance", "RollRadius", "Profile", translate("Roll Radius","Radius at start and end"))
|
||||
obj.addProperty("App::PropertyDistance", "OffsetExtra", "Profile",translate("OffsetExtra","Extra value to stay away from final profile- good for roughing toolpath"))
|
||||
obj.addProperty("App::PropertyLength", "SegLen", "Profile",translate("Seg Len","Tesselation value for tool paths made from beziers, bsplines, and ellipses"))
|
||||
obj.addProperty("App::PropertyDistance", "RollRadius", "Profile","Radius at start and end")
|
||||
obj.addProperty("App::PropertyDistance", "OffsetExtra", "Profile","Extra value to stay away from final profile- good for roughing toolpath")
|
||||
obj.addProperty("App::PropertyLength", "SegLen", "Profile","Tesselation value for tool paths made from beziers, bsplines, and ellipses")
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -45,12 +45,12 @@ class ObjectPathProject:
|
||||
|
||||
|
||||
def __init__(self,obj):
|
||||
# obj.addProperty("App::PropertyFile", "PostProcessor", "CodeOutput", translate("PostProcessor","Select the Post Processor file for this project"))
|
||||
obj.addProperty("App::PropertyFile", "OutputFile", "CodeOutput", translate("OutputFile","The NC output file for this project"))
|
||||
# obj.addProperty("App::PropertyFile", "PostProcessor", "CodeOutput", "Select the Post Processor file for this project")
|
||||
obj.addProperty("App::PropertyFile", "OutputFile", "CodeOutput", "The NC output file for this project")
|
||||
obj.setEditorMode("OutputFile",0) #set to default mode
|
||||
# obj.addProperty("App::PropertyBool","Editor","CodeOutput",translate("Show Editor","Show G-Code in simple editor after posting code"))
|
||||
# obj.addProperty("Path::PropertyTooltable","Tooltable", "Path",translate("PathProject","The tooltable of this feature"))
|
||||
obj.addProperty("App::PropertyString", "Description","Path",translate("PathProject","An optional description for this project"))
|
||||
# obj.addProperty("App::PropertyBool","Editor","CodeOutput","Show G-Code in simple editor after posting code")
|
||||
# obj.addProperty("Path::PropertyTooltable","Tooltable", "Path","The tooltable of this feature")
|
||||
obj.addProperty("App::PropertyString", "Description","Path","An optional description for this project")
|
||||
obj.Proxy = self
|
||||
|
||||
def __getstate__(self):
|
||||
|
||||
@@ -40,9 +40,9 @@ except AttributeError:
|
||||
class Stock:
|
||||
def __init__(self, obj):
|
||||
"Make stock"
|
||||
obj.addProperty("App::PropertyFloat","Length_Allowance","Stock",translate("Length Allowance","extra allownace from part width")).Length_Allowance = 1.0
|
||||
obj.addProperty("App::PropertyFloat","Width_Allowance","Stock",translate("Width Allowance","extra allownace from part width")).Width_Allowance = 1.0
|
||||
obj.addProperty("App::PropertyFloat","Height_Allowance","Stock",translate("Height Allowance","extra allownace from part width")).Height_Allowance = 1.0
|
||||
obj.addProperty("App::PropertyFloat","Length_Allowance","Stock","extra allownace from part width").Length_Allowance = 1.0
|
||||
obj.addProperty("App::PropertyFloat","Width_Allowance","Stock","extra allownace from part width").Width_Allowance = 1.0
|
||||
obj.addProperty("App::PropertyFloat","Height_Allowance","Stock","extra allownace from part width").Height_Allowance = 1.0
|
||||
obj.addProperty("App::PropertyLink","Base","Base",
|
||||
"The base object this represents")
|
||||
obj.Proxy = self
|
||||
|
||||
@@ -38,7 +38,7 @@ except AttributeError:
|
||||
|
||||
class Stop:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyEnumeration", "Stop", "Path", translate("Program Stop", "Add Optional or Mandatory Stop to the program"))
|
||||
obj.addProperty("App::PropertyEnumeration", "Stop", "Path", "Add Optional or Mandatory Stop to the program")
|
||||
obj.Stop=['Optional', 'Mandatory']
|
||||
obj.Proxy = self
|
||||
mode = 2
|
||||
|
||||
@@ -38,10 +38,10 @@ except AttributeError:
|
||||
|
||||
class ToolLenOffset:
|
||||
def __init__(self,obj):
|
||||
obj.addProperty("App::PropertyIntegerConstraint", "HeightNumber","HeightOffset", translate( "Height Offset Number", "The Height offset number of the active tool"))
|
||||
obj.addProperty("App::PropertyIntegerConstraint", "HeightNumber","HeightOffset","The Height offset number of the active tool")
|
||||
obj.HeightNumber = (0,0,10000,1)
|
||||
obj.addProperty("App::PropertyLength", "Height", "HeightOffset", translate("Height","The first height value in Z, to rapid to, before making a feed move in Z"))
|
||||
obj.addProperty("App::PropertyBool","Active","HeightOffset",translate("Active","Make False, to prevent operation from generating code"))
|
||||
obj.addProperty("App::PropertyLength", "Height", "HeightOffset","The first height value in Z, to rapid to, before making a feed move in Z")
|
||||
obj.addProperty("App::PropertyBool","Active","HeightOffset","Make False, to prevent operation from generating code")
|
||||
obj.Proxy = self
|
||||
mode = 2
|
||||
obj.setEditorMode('Placement',mode)
|
||||
|
||||
Reference in New Issue
Block a user