IFilterAddToolDefinitionRound(IODBLayer, Single, Int32, Boolean) Method

Add the definition of an round object.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static int AddToolDefinitionRound(
	IODBLayer Layer,
	float diameter,
	int ToolNr = -1,
	bool useExistingTools = true
)

Parameters

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

Return Value

Int32
the index after check the nr of tooldefinition

See Also