Skip to main content

IParameter interface

The IParameter interface is a parameter object interface to an existing parameter object on a schematic sheet. There are two types of parameters - system parameters which are owned by a schematic document and parameters owned by certain schematic design objects.

public interface IParameter : IDMObject

Namespace: EDP · Assembly: Altium.SDK.Interfaces

Inherits: IDMObject

Remarks​

A parameter is a child object of a Parameter Set, Part, Pin, Port, or Sheet Symbol object. A Parameter object has a Name property and Value property which can be used to store information, thus the parameters are a way of defining and associating information and could include strings that identify component manufacturer, date added to the document and also a string for the component's value (e.g. 100K for a resistor or 10PF for a capacitor).

Each parameter has a Unique Id assigned to it. This is used for those parameters that have been added as design rule directives. When transferring the design to the PCB document, any defined rule parameters will be used to generate the relevant design rules in the PCB. These generated rules will be given the same Unique Ids, allowing you to change rule constraints in either schematic or PCB and push the change across when performing a synchronization.

An equivalent object representation is the ISch_Parameter class in the Sch API reference.

Methods​

MethodReturnsDescription
DM_ConfigurationNamestringThe method returns the configuration name, that the parameter object is associated with.
DM_DescriptionstringThe method denotes the description of this parameter object.
DM_KindTParameterKindThe method denotes the specific kind that can be assigned to this parameter object.
DM_NamestringThe method denotes the name of the parameter object.
DM_NewNamestringThe method denotes the New Name for the parameter object, especially when there is an ECO change.
DM_NewValuestringThe method denotes the New Value for the parameter object, especially when there is an ECO change.
DM_OriginalOwnerIDMObjectThis method returns the interface of the owner object this parameter object is associated with.
DM_RawTextstringThe method returns the raw text for this parameter object.
DM_SetValuevoid
DM_UniqueIdstringAny parameter that is configured as a container for design rule directives need to have a unique ID that will be ported onto the corresponding PCB implementation document.
DM_ValuestringThe method denotes the value placeholder for this parameter object.
DM_VisibleboolThe method denotes whether this parameter object is visible or not.

DM_ConfigurationName​

The method returns the configuration name, that the parameter object is associated with.

string DM_ConfigurationName();

Returns: string

DM_Description​

The method denotes the description of this parameter object.

string DM_Description();

Returns: string

DM_Kind​

The method denotes the specific kind that can be assigned to this parameter object. String, Boolean, Integer or float.

TParameterKind DM_Kind();

Returns: TParameterKind

Extension method of IParameterHelper (using EDP;).

See also: TParameterKind

DM_Name​

The method denotes the name of the parameter object.

string DM_Name();

Returns: string

Examples: Extension_BOMManager

DM_NewName​

The method denotes the New Name for the parameter object, especially when there is an ECO change. You can then compare the original and new names.

string DM_NewName();

Returns: string

DM_NewValue​

The method denotes the New Value for the parameter object, especially when there is an ECO change. You can then compare the original and new values.

string DM_NewValue();

Returns: string

DM_OriginalOwner​

This method returns the interface of the owner object this parameter object is associated with.

IDMObject DM_OriginalOwner();

Returns: IDMObject

Extension method of IParameterHelper (using EDP;).

DM_RawText​

The method returns the raw text for this parameter object.

string DM_RawText();

Returns: string

DM_SetValue​

No description yet.

void DM_SetValue(string argValue);
ParameterTypePassing
argValuestringvalue

Returns: nothing (void)

DM_UniqueId​

Any parameter that is configured as a container for design rule directives need to have a unique ID that will be ported onto the corresponding PCB implementation document.

string DM_UniqueId();

Returns: string

The method returns the Unique ID value for the parameter object.

DM_Value​

The method denotes the value placeholder for this parameter object.

string DM_Value();

Returns: string

Examples: Extension_BOMManager

DM_Visible​

The method denotes whether this parameter object is visible or not.

bool DM_Visible();

Returns: bool

Inherited members​

Returned by​

IDMObject.DM_Parameters, IProject.DM_ManagedParameters

Accepted by​

IDMObject.DM_CalculateParameterValue