Skip to main content
View as Markdown

IPCB_ParametersFactory interface

Creates parameters, parameter lists and the parameters view of a primitive.

public interface IPCB_ParametersFactory

Namespace: PCB · Assembly: Altium.SDK.Interfaces

Remarks​

GetParametersFactory of IPCB_ServerInterface returns the factory. Every call of its members returns a new object.

Methods​

MethodReturnsDescription
CreateParameterIPCB_ParameterCreates a parameter with the given name, value and inherited mark.
CreateParameterListIPCB_ParameterListCreates a new, empty parameter list.
CreatePrimitiveParametersIPCB_PrimitiveParametersReturns a new IPCB_PrimitiveParameters object for a primitive, switched to the given variant.

CreateParameter​

Creates a parameter with the given name, value and inherited mark.

IPCB_Parameter CreateParameter(string argName, string argValue, bool argIsInherited);
ParameterTypePassingDescription
argNamestringvalueThe parameter name.
argValuestringvalueThe parameter value.
argIsInheritedboolvalueWhether the parameter is marked as inherited (IsInherited of IPCB_Parameter).

Returns: IPCB_Parameter

Extension method of IPCB_ParametersFactoryHelper (using PCB;).

The parameter does not belong to any primitive; AddOrSetParameter of IPCB_PrimitiveParameters stores it on a primitive.

CreateParameterList​

Creates a new, empty parameter list.

IPCB_ParameterList CreateParameterList();

Returns: IPCB_ParameterList

Extension method of IPCB_ParametersFactoryHelper (using PCB;).

CreatePrimitiveParameters​

Returns a new IPCB_PrimitiveParameters object for a primitive, switched to the given variant.

IPCB_PrimitiveParameters CreatePrimitiveParameters(IPCB_Primitive argPrimitive, string argVariantName);
ParameterTypePassingDescription
argPrimitiveIPCB_PrimitivevalueThe primitive, for example an IPCB_Component.
argVariantNamestringvalueThe variant name; [No Variations] selects the default variant and an empty string the project's current variant.

Returns: IPCB_PrimitiveParameters

Extension method of IPCB_ParametersFactoryHelper (using PCB;).

The variant is selected as by SwitchToVariantByName of IPCB_PrimitiveParameters, which raises an error when the project has no variant of that name, or when the primitive's board is not in a project and the name is neither [No Variations] nor empty.

Returned by​

IPCB_ServerInterface.GetParametersFactory