Skip to main content

IComponent interface

The IChannelClass interface is a PCB Channel class object interface for an existing Channel Class on a PCB document. An existing Channel (room) class contains members of specific components.

public interface IComponent : IPart

Namespace: EDP · Assembly: Altium.SDK.Interfaces

Inherits: IDMObject → IPart

Remarks​

Each component within a Channel Class object can either be a member or not. The 'All Components' Channel Class exists in every PCB document by default, it includes all Components in the document.

It is not possible to change which components are members of that Channel class, but the user has full control over which components are members of any other Channel classes (which are created and named by the User)

Methods​

MethodReturnsDescription
DM_DoCrossProbevoid
DM_IncrementallyUpdatePhysicalDesignatorsvoid
DM_NexusDeviceIdstring
DM_PhysicalComponentCountintThe method returns the number of physical components.
DM_PhysicalComponentsIComponentThe method returns the indexed physical component.
DM_PhysicalPathstringThe method returns the full physical path for this component.
DM_SubPartCountintThe method returns the number of parts for this multi-part component.
DM_SubPartsIPartThe method returns the indexed sub-part of a multi-part component.
DM_UniqueId_1string
DM_UniqueIdName_1string
DM_UniqueIdPath_1string

DM_DoCrossProbe​

No description yet.

void DM_DoCrossProbe();

Returns: nothing (void)

DM_IncrementallyUpdatePhysicalDesignators​

No description yet.

void DM_IncrementallyUpdatePhysicalDesignators(bool argNewHasDesignatorRecord, bool argNewDesignatorLocked, string argNewPhysicalDesignator);
ParameterTypePassing
argNewHasDesignatorRecordboolvalue
argNewDesignatorLockedboolvalue
argNewPhysicalDesignatorstringvalue

Returns: nothing (void)

DM_NexusDeviceId​

No description yet.

string DM_NexusDeviceId();

Returns: string

DM_PhysicalComponentCount​

The method returns the number of physical components.

int DM_PhysicalComponentCount();

Returns: int

DM_PhysicalComponents​

The method returns the indexed physical component. Use this in conjunction with the DM_PhysicalComponentCount method.

IComponent DM_PhysicalComponents(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IComponent

Extension method of IComponentHelper (using EDP;).

DM_PhysicalPath​

The method returns the full physical path for this component. For example the string can consist of the schematic filename \ channel name and instance.

string DM_PhysicalPath();

Returns: string

DM_SubPartCount​

The method returns the number of parts for this multi-part component. A standalone component returns 1 (only one part for a standalone component).

int DM_SubPartCount();

Returns: int

DM_SubParts​

The method returns the indexed sub-part of a multi-part component. Use the DM_SubPartCount method.

IPart DM_SubParts(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IPart

Extension method of IComponentHelper (using EDP;).

DM_UniqueId_1​

No description yet.

string DM_UniqueId_1();

Returns: string

DM_UniqueIdName_1​

No description yet.

string DM_UniqueIdName_1();

Returns: string

DM_UniqueIdPath_1​

No description yet.

string DM_UniqueIdPath_1();

Returns: string

Inherited members​

Returned by​

IComponentMappings.DM_MatchedSourceComponent, IComponentMappings.DM_MatchedTargetComponent, IComponentMappings.DM_UnmatchedSourceComponent, IComponentMappings.DM_UnmatchedTargetComponent, IDocument.DM_Components, IDocument.DM_UniqueComponents

Accepted by​

IChangeManager.DM_CreateECO_SwapPin, IComponentVariation.DM_CalculatedAlternatePart, IHighlightedDocument.HL_Register_Component, IParameterVariation.DM_CalculatedValue, IProjectProperties.DM_DesignatorRecord_ECOChangeComponentDesignator

Examples​

Used in the SDK examples: Extension_AddVariant, Extension_BOMManager, Extension_BOMManager, Extension_CreateVariantComponent, Extension_HierarchicalDesign.