IFilterAddToolDefinitionRound(IODBLayer, Single, Int32, Boolean) Method
Add the definition of an round object.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static int AddToolDefinitionRound(
IODBLayer Layer,
float diameter,
int ToolNr = -1,
bool useExistingTools = true
)
Public Shared Function AddToolDefinitionRound (
Layer As IODBLayer,
diameter As Single,
Optional ToolNr As Integer = -1,
Optional useExistingTools As Boolean = true
) As Integer
public:
static int AddToolDefinitionRound(
IODBLayer^ Layer,
float diameter,
int ToolNr = -1,
bool useExistingTools = true
)
static member AddToolDefinitionRound :
Layer : IODBLayer *
diameter : float32 *
?ToolNr : int *
?useExistingTools : bool
(* Defaults:
let _ToolNr = defaultArg ToolNr -1
let _useExistingTools = defaultArg useExistingTools true
*)
-> int
- Layer IODBLayer
- The current layer
- diameter Single
- The tool diameter
- ToolNr Int32 (Optional)
- Number of the new tooldefinition (>=0). If this tool number already exists (or is negative), the next free number will be used/returned instead
- useExistingTools Boolean (Optional)
- If true, the index of an existing round tool is returned, if the diameter is the same. If false, a new tool is created in every case
Int32the index after check the nr of tooldefinition