Skip to main content

IDocument interface

The IDocument interface represents the existing document in Altium Designer. A document can be a Schematic, PCB, VHDL, PCB Library document etc.

public interface IDocument : IDMObject

Namespace: EDP · Assembly: Altium.SDK.Interfaces

Inherits: IDMObject

Remarks​

The DM_DocumentKind method of the IDocument interface when invoked returns you the document type. A document can be part of a project or free documents project.

An existing document can be queried to return the project interface this document is associated with.

The IDocument interface is a standalone interface.

Methods​

MethodReturnsDescription
DM_BlanketCountint
DM_BlanketsIBlanket
DM_BusCountintThe method returns the number of bus objects from this document.
DM_BusesIBusThe method returns the indexed Bus instance from this document.
DM_ChannelClassCountintThe method denotes the number of Channel Classes from this document.
DM_ChannelClassesIChannelClassThe method returns the indexed ChannelClass instance from this document.
DM_ChannelIndexintThe method returns the channel index of this document.
DM_ChannelPrefixstringThe method returns the channel prefix of this document.
DM_ChannelRoomNamingStyleTChannelRoomNamingStyleThe method returns the channel room naming style value.
DM_ChildDocumentCountintThe method returns the number of child documents relative to this document.
DM_ChildDocumentsIDocumentThe method returns the indexed child document.
DM_CompileboolThe method invokes the compiler to compile this document.
DM_ComponentClassCountintThe method denotes the number of component classes from this document.
DM_ComponentClassesIComponentClassThe method returns the indexed ComponentClass instance from this document.
DM_ComponentCountintThe method returns the number of component instances on this document.
DM_ComponentsIComponentThe method returns the indexed component instance from this document.
DM_ConstraintGroupCountintThe method denotes the number of constraint groups.
DM_ConstraintGroupsIConstraintGroupThe method returns the indexed constraint group.
DM_CreateViolationIViolationThe method creates a violation based on the error kind and error string upon an incorrect design.
DM_CrossSheetConnectorCountintThe method returns the number of cross sheet connectors on this document.
DM_CrossSheetConnectorsICrossSheetThe method returns the indexed cross sheet connector instance from this document.
DM_CurrentInstanceNumberintThe method returns the current instance number for this document (especially for multi-channel designs where a design document can be referenced multiple times).
DM_DifferentialPairCountintThis method returns the number of differential pairs used in a document in the project.
DM_DifferentialPairsIDifferentialPairThis method returns an indexed differential pair from a document in the project.
DM_DocumentIDstring
DM_DocumentIsLoadedboolThis method returns a boolean value whether this document has been loaded in Altium Designer or not.
DM_DocumentIsTextualboolThe method denotes whether the document is a text document.
DM_DocumentKindstringThis method returns the document kind for the current document.
DM_DocumentLoadedvoid
DM_FileNamestringThis method returns the file name string of this document.
DM_FSMClockPortINetItem
DM_FSMResetPortINetItem
DM_FSMStateIDM_FSMState
DM_FSMStateCountint
DM_FSMTransitionIDM_FSMTransition
DM_FSMTransitionCountint
DM_FullPathstringThis method returns the full path of where this document lives.
DM_GetItemRevisionGUIDstring
DM_GetNetPropertiesINetProperties
DM_HarnessConnectorCountint
DM_HarnessConnectorsISheetSymbol
DM_HarnessNetCountint
DM_HarnessNetsINet
DM_IndentLevelintThe method returns the indent level for this current document with respect to the current project.
DM_IsDeviceSheetbool
DM_IsDocumentFileLessEditingbool
DM_IsPhysicalDocumentboolThis method returns a Boolean value whether this document is a physical document or not.
DM_IsPrimaryImplementationDocumentboolThis method returns a Boolean value whether this document is a primary implementation document (namely a PCB document for instance).
DM_IsVirtualDocumentbool
DM_LoadDocumentboolThis method returns a Boolean value whether this document has been loaded or not.
DM_LogicalDocumentIDocumentThis method returns the logical document if valid.
DM_ModelKindstringThe method returns the model kind string related to this document.
DM_NeedsScrapCompilebool
DM_NetClassCountintThe method denotes the number of net classes on this document.
DM_NetClassesINetClassThe method returns the indexed NetClass instance from this document.
DM_NetCountintThe method returns the number of nets from this document.
DM_NetsINetThe method returns an indexed net associated with this document.
DM_ParentDocumentCountintThe method returns the number of parent documents relative to this document.
DM_ParentDocumentsIDocumentThe method returns the indexed parent document.
DM_ParentSheetSymbolCountint
DM_ParentSheetSymbolsISheetSymbol
DM_PartCountintThe method returns the number of part objects from this document.
DM_PartsIPartThe method returns an indexed part associated with this document.
DM_PhysicalDocumentIDocument
DM_PhysicalDocumentCountintThe method returns the number of physical documents associated with this document.
DM_PhysicalDocumentParentIDocumentThe method returns the IDocument interface for a parent physical document.
DM_PhysicalInstanceNamestringThe method returns the name of this physical document if valid.
DM_PhysicalInstancePathstringThe method returns the path to the physical document instance if valid.
DM_PhysicalRoomNamestringThe method returns the name of the room on this physical document if valid.
DM_PortCountintThe method returns the number of port objects on this document.
DM_PortsINetItemThe method returns the indexed port instance from this document.
DM_ProjectIProjectThis method returns the IProject object interface that this document is associated with.
DM_RoomCountintThe method denotes the number of rooms on this document.
DM_RoomsIRoomThe method returns the indexed room instance from this document.
DM_RuleCountintThe method returns the number of rules from this document.
DM_RulesIRuleThe method denotes the indexed rule from this document.
DM_ScrapCompileboolThe method invokes a scrap compile (by force or not).
DM_ScrapCompileWithOptionsbool
DM_ServerDocumentIServerDocument
DM_SetItemRevisionGUIDvoid
DM_SheetSizeXint
DM_SheetSizeyint
DM_SheetSymbolCountintThe method returns the number of sheet symbols from this document.
DM_SheetSymbolsISheetSymbolThe method returns an indexed sheet symbol associated with this document.
DM_SignalManagerISignalManagerThe method returns the signal manager interface.
DM_SmartLoadbool
DM_SpatialAnalysisbool
DM_SpatialAnalysisForTestint
DM_TextFrameCountintThe method returns the number of text frame objects from this document.
DM_TextFramesITextFrameThe method returns an indexed textframe object associated with this document.
DM_UniqueComponentCountintThe method returns the number of unique components according to the library (ies) they are placed from.
DM_UniqueComponentsIComponentThe method returns the indexed unique component instance from this document.
DM_UniquePartCountintThe method denotes the number of unique parts from this document.
DM_UniquePartsIPartThe method returns an indexed unique part associated with this document.
DM_UpdateDateModifiedvoidThe method sets the modified date for this document.
DM_VHDLEntitiesIVHDLEntityThe method returns the indexed VHDL entity instance from this document.
DM_VHDLEntityCountintThe method denotes the number of VHDL entities from this document.

DM_BlanketCount​

No description yet.

int DM_BlanketCount();

Returns: int

DM_Blankets​

No description yet.

IBlanket DM_Blankets(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IBlanket

Extension method of IDocumentHelper (using EDP;).

DM_BusCount​

The method returns the number of bus objects from this document. Use this in conjunction with the DM_Buses(Index) to go through each bus object.

int DM_BusCount();

Returns: int

DM_Buses​

The method returns the indexed Bus instance from this document.

IBus DM_Buses(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IBus

Extension method of IDocumentHelper (using EDP;).

DM_ChannelClassCount​

The method denotes the number of Channel Classes from this document. Use this Channel Class count in conjunction with the DM_ChannelClasses(index) to go through each channel class.

int DM_ChannelClassCount();

Returns: int

DM_ChannelClasses​

The method returns the indexed ChannelClass instance from this document. Use this in conjunction with the DM_ChannelClassCount method

IChannelClass DM_ChannelClasses(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IChannelClass

Extension method of IDocumentHelper (using EDP;).

DM_ChannelIndex​

The method returns the channel index of this document. This is especially for multi-channel designs where a single source document can be referenced multiple times.

int DM_ChannelIndex();

Returns: int

DM_ChannelPrefix​

The method returns the channel prefix of this document. This is especially for multi-channel designs where a single source document can be referenced multiple times.

string DM_ChannelPrefix();

Returns: string

DM_ChannelRoomNamingStyle​

The method returns the channel room naming style value.

TChannelRoomNamingStyle DM_ChannelRoomNamingStyle();

Returns: TChannelRoomNamingStyle

Extension method of IDocumentHelper (using EDP;).

DM_ChildDocumentCount​

The method returns the number of child documents relative to this document.

int DM_ChildDocumentCount();

Returns: int

DM_ChildDocuments​

The method returns the indexed child document. A hierarchical design consists of multi layered parent-child documents.

IDocument DM_ChildDocuments(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDocument

Extension method of IDocumentHelper (using EDP;).

DM_Compile​

The method invokes the compiler to compile this document. If the compile was successful, a true value is returned.

bool DM_Compile();

Returns: bool

DM_ComponentClassCount​

The method denotes the number of component classes from this document. Use this Component class count in conjunction with the DM_ComponentClasses(index) to go through each component class.

int DM_ComponentClassCount();

Returns: int

DM_ComponentClasses​

The method returns the indexed ComponentClass instance from this document. Use this in conjuniton with the DM_ComponentClassCount method.

IComponentClass DM_ComponentClasses(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IComponentClass

Extension method of IDocumentHelper (using EDP;).

DM_ComponentCount​

The method returns the number of component instances on this document. Use this in conjunction with the DM_Components(Index) method to go through each component object.

int DM_ComponentCount();

Returns: int

Examples: Extension_AddVariant, Extension_BOMManager, Extension_CreateVariantComponent, Extension_HierarchicalDesign

DM_Components​

The method returns the indexed component instance from this document. This is to be used in conjunction with the DM_ComponentCount method.

IComponent DM_Components(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IComponent

Extension method of IDocumentHelper (using EDP;).

Examples: Extension_AddVariant, Extension_BOMManager, Extension_CreateVariantComponent, Extension_HierarchicalDesign

DM_ConstraintGroupCount​

The method denotes the number of constraint groups.

int DM_ConstraintGroupCount();

Returns: int

DM_ConstraintGroups​

The method returns the indexed constraint group. Use the DM_ConstraintGroupCount method to get the number of constraint groups.

IConstraintGroup DM_ConstraintGroups(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IConstraintGroup

Extension method of IDocumentHelper (using EDP;).

DM_CreateViolation​

The method creates a violation based on the error kind and error string upon an incorrect design.

IViolation DM_CreateViolation(TErrorKind argErrorKind, string argErrorString);
ParameterTypePassing
argErrorKindTErrorKindvalue
argErrorStringstringvalue

Returns: IViolation

Extension method of IDocumentHelper (using EDP;).

DM_CrossSheetConnectorCount​

The method returns the number of cross sheet connectors on this document. Use this in conjunction with the DM_CrossConnectors(index) to go through each cross connector object.

int DM_CrossSheetConnectorCount();

Returns: int

DM_CrossSheetConnectors​

The method returns the indexed cross sheet connector instance from this document. This is to be used in conjunction with the DM_CrossSheetConnectorCount method.

ICrossSheet DM_CrossSheetConnectors(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: ICrossSheet

Extension method of IDocumentHelper (using EDP;).

DM_CurrentInstanceNumber​

The method returns the current instance number for this document (especially for multi-channel designs where a design document can be referenced multiple times).

int DM_CurrentInstanceNumber();

Returns: int

DM_DifferentialPairCount​

This method returns the number of differential pairs used in a document in the project.

int DM_DifferentialPairCount();

Returns: int

See also: IDifferentialPair

DM_DifferentialPairs​

This method returns an indexed differential pair from a document in the project.

IDifferentialPair DM_DifferentialPairs(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDifferentialPair

Extension method of IDocumentHelper (using EDP;).

See also: IDifferentialPair

DM_DocumentID​

No description yet.

string DM_DocumentID();

Returns: string

DM_DocumentIsLoaded​

This method returns a boolean value whether this document has been loaded in Altium Designer or not.

bool DM_DocumentIsLoaded();

Returns: bool

DM_DocumentIsTextual​

The method denotes whether the document is a text document.

bool DM_DocumentIsTextual();

Returns: bool

DM_DocumentKind​

This method returns the document kind for the current document. A document could be a Schematic document and thus the string returned is 'SCH'. Check the installation file of each server for the Server Name.

string DM_DocumentKind();

Returns: string

Examples: Ciiva, Ciiva, Extension_PartComment

DM_DocumentLoaded​

No description yet.

void DM_DocumentLoaded();

Returns: nothing (void)

DM_FileName​

This method returns the file name string of this document.

string DM_FileName();

Returns: string

Examples: Ciiva

DM_FSMClockPort​

No description yet.

INetItem DM_FSMClockPort();

Returns: INetItem

Extension method of IDocumentHelper (using EDP;).

DM_FSMResetPort​

No description yet.

INetItem DM_FSMResetPort();

Returns: INetItem

Extension method of IDocumentHelper (using EDP;).

DM_FSMState​

No description yet.

IDM_FSMState DM_FSMState(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDM_FSMState

Extension method of IDocumentHelper (using EDP;).

DM_FSMStateCount​

No description yet.

int DM_FSMStateCount();

Returns: int

DM_FSMTransition​

No description yet.

IDM_FSMTransition DM_FSMTransition(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDM_FSMTransition

Extension method of IDocumentHelper (using EDP;).

DM_FSMTransitionCount​

No description yet.

int DM_FSMTransitionCount();

Returns: int

DM_FullPath​

This method returns the full path of where this document lives.

string DM_FullPath();

Returns: string

Examples: Ciiva

DM_GetItemRevisionGUID​

No description yet.

string DM_GetItemRevisionGUID();

Returns: string

DM_GetNetProperties​

No description yet.

INetProperties DM_GetNetProperties(string argObjectHandle);
ParameterTypePassing
argObjectHandlestringvalue

Returns: INetProperties

Extension method of IDocumentHelper (using EDP;).

DM_HarnessConnectorCount​

No description yet.

int DM_HarnessConnectorCount();

Returns: int

DM_HarnessConnectors​

No description yet.

ISheetSymbol DM_HarnessConnectors(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: ISheetSymbol

Extension method of IDocumentHelper (using EDP;).

DM_HarnessNetCount​

No description yet.

int DM_HarnessNetCount();

Returns: int

DM_HarnessNets​

No description yet.

INet DM_HarnessNets(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: INet

Extension method of IDocumentHelper (using EDP;).

DM_IndentLevel​

The method returns the indent level for this current document with respect to the current project.

int DM_IndentLevel();

Returns: int

DM_IsDeviceSheet​

No description yet.

bool DM_IsDeviceSheet();

Returns: bool

DM_IsDocumentFileLessEditing​

No description yet.

bool DM_IsDocumentFileLessEditing();

Returns: bool

DM_IsPhysicalDocument​

This method returns a Boolean value whether this document is a physical document or not. There are logical and physical documents; these terms are used to differentiate the documents in multi-channel projects. A multi channel design means that a single sheet is referenced repeatedly for a channel design. This sheet is called a logical document. A physical document (usually a PCB document) has components with unique names within a room which is mapped to a channel on a Schematic sheet. So a multi channel design translates to multiple rooms with components with unique physical designators on a PCB.

bool DM_IsPhysicalDocument();

Returns: bool

A physical designator of a PCB component is calculated to have the hierarchy path of a schematic project as well as the logical designator of the associated Schematic component to ensure that this designator for the PCB component is unique.

DM_IsPrimaryImplementationDocument​

This method returns a Boolean value whether this document is a primary implementation document (namely a PCB document for instance). A schematic document is a source document and is centric to a design project.

bool DM_IsPrimaryImplementationDocument();

Returns: bool

DM_IsVirtualDocument​

No description yet.

bool DM_IsVirtualDocument();

Returns: bool

DM_LoadDocument​

This method returns a Boolean value whether this document has been loaded or not.

bool DM_LoadDocument();

Returns: bool

DM_LogicalDocument​

This method returns the logical document if valid. Otherwise a nil value is returned. There are logical and physical documents; these terms are used to differentiate the documents in multi-channel projects. A multi channel design means that a single sheet is referenced repeatedly for a channel design. This sheet is called a logical document. A physical document (usually a PCB document) has components with unique names within a room which is mapped to a channel on a Schematic sheet. So a multi channel design translates to multiple rooms with components with unique physical designators on a PCB.

IDocument DM_LogicalDocument();

Returns: IDocument

Extension method of IDocumentHelper (using EDP;).

A physical designator of a PCB component is calculated to have the hierarchy path of a schematic project as well as the logical designator of the associated Schematic component to ensure that this designator for the PCB component is unique.

DM_ModelKind​

The method returns the model kind string related to this document.

string DM_ModelKind();

Returns: string

DM_NeedsScrapCompile​

No description yet.

bool DM_NeedsScrapCompile();

Returns: bool

DM_NetClassCount​

The method denotes the number of net classes on this document. Use this NetClass count in conjunction with the DM_NetClasses(Index) method to go through each net class.

int DM_NetClassCount();

Returns: int

DM_NetClasses​

The method returns the indexed NetClass instance from this document. Use this in conjunction with the DM_NetClassCount method.

INetClass DM_NetClasses(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: INetClass

Extension method of IDocumentHelper (using EDP;).

DM_NetCount​

The method returns the number of nets from this document. Use this Net count in conjunction with the DM_Nets(Index) to go through each sheet symbol object

int DM_NetCount();

Returns: int

DM_Nets​

The method returns an indexed net associated with this document.

INet DM_Nets(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: INet

Extension method of IDocumentHelper (using EDP;).

DM_ParentDocumentCount​

The method returns the number of parent documents relative to this document.

int DM_ParentDocumentCount();

Returns: int

DM_ParentDocuments​

The method returns the indexed parent document. A hierarchical design consists of multi layered parent-child documents.

IDocument DM_ParentDocuments(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDocument

Extension method of IDocumentHelper (using EDP;).

DM_ParentSheetSymbolCount​

No description yet.

int DM_ParentSheetSymbolCount();

Returns: int

DM_ParentSheetSymbols​

No description yet.

ISheetSymbol DM_ParentSheetSymbols(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: ISheetSymbol

Extension method of IDocumentHelper (using EDP;).

DM_PartCount​

The method returns the number of part objects from this document. Use this PartCount in conjunction with the DM_Parts(Index) to go through each part object.

int DM_PartCount();

Returns: int

Examples: Extension_PartComment

DM_Parts​

The method returns an indexed part associated with this document.

IPart DM_Parts(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IPart

Extension method of IDocumentHelper (using EDP;).

Examples: Extension_PartComment

DM_PhysicalDocument​

No description yet.

IDocument DM_PhysicalDocument(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDocument

Extension method of IDocumentHelper (using EDP;).

DM_PhysicalDocumentCount​

The method returns the number of physical documents associated with this document.

int DM_PhysicalDocumentCount();

Returns: int

DM_PhysicalDocumentParent​

The method returns the IDocument interface for a parent physical document. Could be a VHDL or a PCB document for example.

IDocument DM_PhysicalDocumentParent();

Returns: IDocument

Extension method of IDocumentHelper (using EDP;).

DM_PhysicalInstanceName​

The method returns the name of this physical document if valid. Otherwise an empty string is returned.

string DM_PhysicalInstanceName();

Returns: string

DM_PhysicalInstancePath​

The method returns the path to the physical document instance if valid. Otherwise an empty string is returned.

string DM_PhysicalInstancePath();

Returns: string

DM_PhysicalRoomName​

The method returns the name of the room on this physical document if valid. Otherwise a nil value is returned.

string DM_PhysicalRoomName();

Returns: string

DM_PortCount​

The method returns the number of port objects on this document. Use this in conjunction with the DM_Ports(index) to go through each port object.

int DM_PortCount();

Returns: int

Examples: Extension_TestPortHarnessDev

DM_Ports​

The method returns the indexed port instance from this document. This is to be used in conjunction with the DM_PortCount method

INetItem DM_Ports(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: INetItem

Extension method of IDocumentHelper (using EDP;).

Examples: Extension_TestPortHarnessDev

DM_Project​

This method returns the IProject object interface that this document is associated with.

IProject DM_Project();

Returns: IProject

Extension method of IDocumentHelper (using EDP;).

Examples: Ciiva

DM_RoomCount​

The method denotes the number of rooms on this document. Use this RoomCount in conjunction with the DM_Rooms(Index) to go through each room object.

int DM_RoomCount();

Returns: int

DM_Rooms​

The method returns the indexed room instance from this document. Use this in conjunction with the DM_RoomCount method.

IRoom DM_Rooms(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IRoom

Extension method of IDocumentHelper (using EDP;).

DM_RuleCount​

The method returns the number of rules from this document. Use this Rule count in conjunction with the DM_Rules(Index) to go through each sheet symbol object

int DM_RuleCount();

Returns: int

DM_Rules​

The method denotes the indexed rule from this document. Use this DM_RuleCount in conjunction with the DM_Rules to go through each rule found from this document..

IRule DM_Rules(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IRule

Extension method of IDocumentHelper (using EDP;).

DM_ScrapCompile​

The method invokes a scrap compile (by force or not). A scrap compile is the background compile in Altium Designer on a design document and does all the auto - junctions for bus and wire objects. Also the scrap compile does the online rule checks in schematics. It is totally separate from the main compile which compile projects.

bool DM_ScrapCompile(bool argForceCompile);
ParameterTypePassing
argForceCompileboolvalue

Returns: bool

DM_ScrapCompileWithOptions​

No description yet.

bool DM_ScrapCompileWithOptions(bool argForceCompile, string argOptions);
ParameterTypePassing
argForceCompileboolvalue
argOptionsstringvalue

Returns: bool

DM_ServerDocument​

No description yet.

IServerDocument DM_ServerDocument();

Returns: IServerDocument

Extension method of IDocumentHelper (using EDP;).

DM_SetItemRevisionGUID​

No description yet.

void DM_SetItemRevisionGUID(string argS);
ParameterTypePassing
argSstringvalue

Returns: nothing (void)

DM_SheetSizeX​

No description yet.

int DM_SheetSizeX();

Returns: int

DM_SheetSizey​

No description yet.

int DM_SheetSizey();

Returns: int

DM_SheetSymbolCount​

The method returns the number of sheet symbols from this document. Use this SheetSymbol count in conjunction with the DM_SheetSymbols(Index) to go through each sheet symbol object.

int DM_SheetSymbolCount();

Returns: int

DM_SheetSymbols​

The method returns an indexed sheet symbol associated with this document.

ISheetSymbol DM_SheetSymbols(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: ISheetSymbol

Extension method of IDocumentHelper (using EDP;).

DM_SignalManager​

The method returns the signal manager interface.

ISignalManager DM_SignalManager();

Returns: ISignalManager

Extension method of IDocumentHelper (using EDP;).

See also: ISignalManager

DM_SmartLoad​

No description yet.

bool DM_SmartLoad();

Returns: bool

DM_SpatialAnalysis​

No description yet.

bool DM_SpatialAnalysis(bool argForce, bool argllowAbort, bool argbortOnMouseMove);
ParameterTypePassing
argForceboolvalue
argllowAbortboolvalue
argbortOnMouseMoveboolvalue

Returns: bool

DM_SpatialAnalysisForTest​

No description yet.

int DM_SpatialAnalysisForTest();

Returns: int

DM_TextFrameCount​

The method returns the number of text frame objects from this document. Use this TextFrame count in conjunction with the DM_TextFrames(Index) to go through each sheet symbol object

int DM_TextFrameCount();

Returns: int

DM_TextFrames​

The method returns an indexed textframe object associated with this document.

ITextFrame DM_TextFrames(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: ITextFrame

Extension method of IDocumentHelper (using EDP;).

DM_UniqueComponentCount​

The method returns the number of unique components according to the library (ies) they are placed from. A duplicate of components of the same component kind is counted as one (1). Use this in conjunction with the DM_UniqueComponents(Index) method to go through each unique component object.

int DM_UniqueComponentCount();

Returns: int

DM_UniqueComponents​

The method returns the indexed unique component instance from this document. This method is to be used in conjunction with the DM_UniqueComponentCount method.

IComponent DM_UniqueComponents(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IComponent

Extension method of IDocumentHelper (using EDP;).

DM_UniquePartCount​

The method denotes the number of unique parts from this document. Duplicates of the same part kind are only returned as a count of one (1).

int DM_UniquePartCount();

Returns: int

DM_UniqueParts​

The method returns an indexed unique part associated with this document. Note, if multiple instances of the same part exist, then only one of these parts will be recognized.

IPart DM_UniqueParts(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IPart

Extension method of IDocumentHelper (using EDP;).

DM_UpdateDateModified​

The method sets the modified date for this document.

void DM_UpdateDateModified();

Returns: nothing (void)

DM_VHDLEntities​

The method returns the indexed VHDL entity instance from this document. Use this in conjunction with the DM_VHDLEntityCount method.

IVHDLEntity DM_VHDLEntities(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IVHDLEntity

Extension method of IDocumentHelper (using EDP;).

See also: IDocument.DM_VHDLEntityCount

DM_VHDLEntityCount​

The method denotes the number of VHDL entities from this document. Use this VHDL Entity count in conjunction with the DM_VHDLEntities(Index) to go through each VHDL entity.

int DM_VHDLEntityCount();

Returns: int

See also: IDocument.DM_VHDLEntities

Inherited members​

Returned by​

IDMObject.DM_OwnerDocument, IDocumentStructure.DM_GetDocument, IDocumentStructure.DM_GetSourceDocument, IPart.DM_ChildProjectSheet, IPart.DM_LogicalOwnerDocument, IProject.DM_DocumentFlattened, IProject.DM_GeneratedDocuments, IProject.DM_GetDocumentByDocumentId, IProject.DM_GetDocumentFromPath, IProject.DM_GetScrapDocument, IProject.DM_LogicalDocuments, IProject.DM_PhysicalDocuments, IProject.DM_PrimaryImplementationDocument, IProject.DM_TopLevelLogicalDocument, IProject.DM_TopLevelPhysicalDocument, IProjectProperties.DM_DeviceSheets, IProjectProperties.DM_ProjectDocuments, ISheetSymbol.DM_ChildSheet, IWorkspace.DM_FocusedDocument, IWorkspace.DM_GetDocumentFromPath, IWorkspace.DM_InstalledLibraries

Accepted by​

IBomManagerFactory.GetManagerForCompareDocuments, IBomManagerFactory.GetManagerForDocument, IBomManagerFactory.GetManagerForDocumentPcb, IBomManagerFactory.GetManagerForProjectPcb, ICMP_DocumentComparer.Compare, ICMP_PCBChangesApplier.ApplyChanges, ICMP_PCBChangesApplier.ApplyChangesWithCallback, ICMP_PCBObjectModelImporter.ImportFromPCBDocument, IChangeManager.DM_CreateECO_SwapPin

Examples​

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