PocketParameterData: Difference between revisions
No edit summary |
No edit summary |
||
Line 70: | Line 70: | ||
R/W - bool - If true use a larger tool for area clearance | R/W - bool - If true use a larger tool for area clearance | ||
'''Example Code''' | |||
<nowiki> -- Create object used to pass pocketing options - used for area clearance only | <nowiki>-- Create object used to pass pocketing options - used for area clearance only | ||
local pocket_data = PocketParameterData() | local pocket_data = PocketParameterData() | ||
-- start depth for toolpath | -- start depth for toolpath | ||
Line 92: | Line 92: | ||
[[File:Back.jpg|right|50px|link=Toolpaths]] | [[File:Back.jpg|right|50px|link=Toolpaths]] | ||
==References== | ==References== | ||
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information] | '''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information] |
Revision as of 21:08, 3 August 2021
This object is used to hold the settings for a pocketing toolpath and also the clearance tool section of a flat bottomed v carving toolpath.
Constructor
ProfileParameterData() - Constructor
Create a new object ready to have its parameters set
For Example:
local pocket_data = PocketParameterData()()
Properties
.Allowance
R/W - double - allowance to leave on pocket sides when calculating toolpath
.AllowanceFormula
R/W - string -Formula for allowance to leave on pocket sides when calculating toolpath
.CutDepth
R/W - double -Final cutting depth below start depth
.CutDepthFormula
R/W - string -Formula for cutting depth below start depth
.CutDirection
R/W - integer - Cutting direction for toolpath. Valid values are ...
- ProfileParameterData.CLIMB_DIRECTION
- ProfileParameterData.CONVENTIONAL_DIRECTION
Note: Direction constants use ProfileParameterData. NOT PocketParameterData.
.DoRamping
R/W - bool - If true ramp entry to pockets (always zig-zag)
.DoRasterClearance
R/W - bool - if true doing raster area clearance, else offset
Returns: (bool) if true we will do peck drilling
.Name
R/W - string - The name for the toolpath
.ProfilePassType
R/W - integer - type of profile pass to perform . Valid values are ...
- PocketParameterData.PROFILE_NONE
- PocketParameterData.PROFILE_FIRST
- PocketParameterData.PROFILE_LAST
.ProjectToolpath
R/W - bool - If true and used with Aspire, toolpath is projected onto model surface after calculation
.RampDistance
R/W - double - distance to ramp over if doing ramping
.RasterAllowance
R/W - double - allowance to leave on pocket edge between rasters
.RasterAngle
R/W - double - Angle in degrees to create raster toolpaths at
.StartDepth
R/W - double - Start depth for toolpath below material surface
.StartDepthFormula
R/W - string -Formula for start depth for toolpath below material surface
.UseAreaClearTool
R/W - bool - If true use a larger tool for area clearance
Example Code
-- Create object used to pass pocketing options - used for area clearance only local pocket_data = PocketParameterData() -- start depth for toolpath pocket_data.StartDepth = start_depth -- cut depth for toolpath this is depth below start depth pocket_data.CutDepth = flat_depth -- direction of cut for offet clearance - ProfileParameterData.CLIMB_DIRECTION -- or ProfileParameterData.CONVENTIONAL_DIRECTION - NOTE: enum from ProfileParameterData pocket_data.CutDirection = ProfileParameterData.CLIMB_DIRECTION -- if true use raster clearance strategy , else use offset area clearance pocket_data.DoRasterClearance = true -- angle for raster if using raster clearance pocket_data.RasterAngle = 0 -- type of profile pass to perform PocketParameterData.PROFILE_NONE , -- PocketParameterData.PROFILE_FIRST orPocketParameterData.PROFILE_LAST pocket_data.ProfilePassType = PocketParameterData.PROFILE_LAST
References
Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information