IFilterAddToolDefinitionSpecial(IODBLayer, IPCBIWindow, String, ListIODBObject, Double, Double, IFilterToolDefinition) Method

Creates a new Special Symbol and returns the toolNr. for the wanted layer. This will move the IODBObjects to the symbol and if the cadConformName already exists only return the index of the existing symbol.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static int AddToolDefinitionSpecial(
	IODBLayer Layer,
	IPCBIWindow pcbi,
	string cadConformName,
	List<IODBObject> ObjectListToMoveIntoSymbol,
	double offsetX,
	double offsetY,
	out IFilterToolDefinition outToolDefintion
)

Parameters

Layer  IODBLayer
The name of the layer.
pcbi  IPCBIWindow
The main Window with a loaded job
cadConformName  String
Name of the special tool (use IAutomation.MakeStringCADConform). If this symbol already exists, the exisitng symbol is used without being changed.
ObjectListToMoveIntoSymbol  ListIODBObject
A List of Objects that will be placed in the symbol (no polygonization)
offsetX  Double
Offset in X, all Objects will be transformed by offsetX
offsetY  Double
Offset in Y, all Objects will be transformed by offsetY
outToolDefintion  IFilterToolDefinition
Tool definiton with more details than only shape index or null.

Return Value

Int32
The index of the tool

See Also