StencilCreationScriptIsAvailableFor Method

Filter the available script rules for the stencil editor.

Definition

Namespace: PCBI_Stencil_Editor.StencilCreationRules
Assembly: PCBI_Stencil_Editor (in PCBI_Stencil_Editor.dll) Version: 17.0.0.0 (17.0.0.0)
C#
bool IsAvailableFor(
	IPackageSpecificsD relevantPackage,
	IPCBIWindow parent
)

Parameters

relevantPackage  IPackageSpecificsD
One example to check your own rules e.g. pin count.
parent  IPCBIWindow
Main IPCBWindow to have a connection to the PCB-Investigator.

Return Value

Boolean
True if the rule is available for the asked package.

Example

C#
public bool IsAvailableFor(IPackageSpecificsD relevantPackage, IPCBIWindow parent)
{ return true; }

See Also