GeometrySelector

From SDK
Revision as of 17:04, 1 May 2024 by WikiSysop (talk | contribs)
Jump to navigation Jump to search
Back.jpg

This object is used to pass data to the various toolpath creation function in the ToolpathManager object to specify automatic selection of geometry for the toolpath when it is calculated. The default constructor for the object will leave the GeometrySelector inactive, and the toolpath will calculate using the currently selected vectors.

Constructor

GeometrySelector() Creates a new GeomterySelector object with default values.


Properties

.AllowOpen

Interaction: Read and Write

Returns: (bool) if true selector will allow open vectors in the selection


.AllowToolDia

Interaction: Read and Write

Returns: (bool) if true selector will use .ToolDia field when selecting vectors


.CircleDia

Interaction: Read and Write

Returns:(double) Diameter of circles we select if .CircleMatchCircleDia and .SelectCircles is true


.CircleTolerance

Interaction: Read and Write

Returns:(double) tolerance we use when deciding if a circle matches the ToolDia or CircleDia criteria


.CircleMatchAll

Interaction: Read and Write

Returns: (bool) if true we select all circles if .SelectCircles is true


.CircleMatchCircleDia

Interaction: Read and Write

Returns: (bool) if true we select all circles matching .CircleDia if .SelectCircles is true


.CircleMatchToolDia

Interaction: Read and Write

Returns: (bool) if true we select all circles that match the diameter of the tool used for the toolpath if .SelectCircles is true


.GeometryDepthOffset

Interaction: Read and Write

Returns: (double) Offset value to add to depth


.GeometryDepthOffset Formula

Interaction: Read and Write

Returns: (string) Formula for depth offset from geometry


.MixedGroupsOk

Interaction: Read and Write

Returns: (bool) if true groups which only match some criteria are selected


.OnlyOnLayers

Interaction: Read and Write

Returns: (bool) if true only vectors on the layers added with:AddLayerName are selected.


.SelectClosed

Interaction: Read and Write

Returns: (bool) if true closed vectors are selected


.SelectCircles

Interaction: Read and Write

Returns: (bool) if true we are only selecting circles


.SelectOpen

Interaction: Read and Write

Returns: (bool) if true open vectors are selected


.SetDepthFromGeometry

Interaction: Read and Write

Returns: (bool) if true depth for toolpath is set from selected geometry (which must have been imported from DXF files with depth set)


.ToolDia

Interaction: Read and Write

Returns: (double) Current diameter of circles we select if .CircleMatchToolDia and .SelectCircles is true

Layer List Access

.HaveLayerNames

Interaction: Read Only

Returns: (bool) true if the geometry selector has a list of layer names


.LayerNameCount

Interaction: Read Only

Returns: (integer) number of layers


:AddLayerhName(string name)

Add passed layer name to list of names selector uses if .OnlyOnLayers is true.

name (string) name of layer to add to list


:GetAtLayerName(POSITION pos)

Returns: the layer name at the current position
pos (POSTION) current position in list


:GetLayerNameHeadPosition()

Returns: (POSITION) a variable to allow access to the head of the list of layer names


:GetNextLayerName(POSITION pos)

Returns: Both the layer name at the current position ANDa new value for position pointing to the next item in the list (or nil if at end of list)
pos (POSTION) current position in list


:GetPrevLayerName(POSITION pos)

Returns: Both the layer name at the current position ANDa new value for position, pointing to the previous item in the list (or nil if at start of list)
pos (POSTION) current position in list


:GetLayerNameTailPosition()

Returns: (POSITION) a variable to allow access to the tail (end) of the list of layer names


:FindLayerWithName(string name)

Returns: the POSITION of layer with passed name or nil if no layer in list with name found
name (string) name of layer to find position of

Methods

:HasSelectorData(Toolpath toolpath)

Returns: (bool) true if the passed toolpath has selector data stored with it
toolpath (Toolpath) toolpath to check for data


:LoadSelectorData(Toolpath toolpath)

Loads the selector data from passed toolpath into this object data

toolpath (Toolpath) toolpath to get data from


:SaveSelectorData(Toolpath toolpath)

Saves the selector data to passed toolpath

toolpath (Toolpath) toolpath to set data on


:RemoveAllLayerNames()

Remove all layer names associated with this selector.


Back.jpg

References

Please Note: The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 10.0, published August 21, 2019. by Vectric Ltd. Most current document from Vertric can be downloaded at Vertric Developer Information