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.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static int AddToolDefinitionSpecial(
IODBLayer Layer,
IPCBIWindow pcbi,
string cadConformName,
List<IODBObject> ObjectListToMoveIntoSymbol,
double offsetX,
double offsetY,
out IFilterToolDefinition outToolDefintion
)
Public Shared Function AddToolDefinitionSpecial (
Layer As IODBLayer,
pcbi As IPCBIWindow,
cadConformName As String,
ObjectListToMoveIntoSymbol As List(Of IODBObject),
offsetX As Double,
offsetY As Double,
<OutAttribute> ByRef outToolDefintion As IFilterToolDefinition
) As Integer
public:
static int AddToolDefinitionSpecial(
IODBLayer^ Layer,
IPCBIWindow^ pcbi,
String^ cadConformName,
List<IODBObject^>^ ObjectListToMoveIntoSymbol,
double offsetX,
double offsetY,
[OutAttribute] IFilterToolDefinition^% outToolDefintion
)
static member AddToolDefinitionSpecial :
Layer : IODBLayer *
pcbi : IPCBIWindow *
cadConformName : string *
ObjectListToMoveIntoSymbol : List<IODBObject> *
offsetX : float *
offsetY : float *
outToolDefintion : IFilterToolDefinition byref -> int
- 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.
Int32The index of the tool