Skip to main content

IViolation interface

The IViolation interface represents a violation object on a design document in the Workspace Manager of Altium Designer.

public interface IViolation : IDMObject

Namespace: EDP · Assembly: Altium.SDK.Interfaces

Inherits: IDMObject

Methods​

MethodReturnsDescription
DM_AddRelatedObjectvoidThis method adds the object that is part of the violation.
DM_CompilationStageTCompilationStageThis method returns the status of the complation stage: during compilation or during flattening process.
DM_ConnectionCode1TConnectionCode
DM_ConnectionCode2TConnectionCode
DM_DescriptorStringstringThis method returns the description string for this violation interface.
DM_DetailStringstringThis method returns the detailed description stirng of this violation interface.
DM_ErrorKindTErrorKindReturns the kind of error this violation has been assigned to.
DM_ErrorLevelTErrorLevelReturns the level of error this violation has been assigned to.
DM_IsSuppressedbool
DM_RelatedObjectCountintThis method returns the number of related objects of the violation.
DM_RelatedObjectsIDMObjectThis method returns the indexed related object of the violation.

DM_AddRelatedObject​

This method adds the object that is part of the violation.

void DM_AddRelatedObject(IDMObject argnObject);
void DM_AddRelatedObject(object argnObject);
ParameterTypePassing
argnObjectIDMObjectvalue

Returns: nothing (void)

The first overload is an extension method of IViolationHelper (using EDP;) with typed parameters; the second is declared by the interface.

DM_CompilationStage​

This method returns the status of the complation stage: during compilation or during flattening process.

TCompilationStage DM_CompilationStage();

Returns: TCompilationStage

Extension method of IViolationHelper (using EDP;).

DM_ConnectionCode1​

No description yet.

TConnectionCode DM_ConnectionCode1();

Returns: TConnectionCode

Extension method of IViolationHelper (using EDP;).

DM_ConnectionCode2​

No description yet.

TConnectionCode DM_ConnectionCode2();

Returns: TConnectionCode

Extension method of IViolationHelper (using EDP;).

DM_DescriptorString​

This method returns the description string for this violation interface.

string DM_DescriptorString();

Returns: string

DM_DetailString​

This method returns the detailed description stirng of this violation interface.

string DM_DetailString();

Returns: string

DM_ErrorKind​

Returns the kind of error this violation has been assigned to.

TErrorKind DM_ErrorKind();

Returns: TErrorKind

Extension method of IViolationHelper (using EDP;).

DM_ErrorLevel​

Returns the level of error this violation has been assigned to. Various error levels include : eErrorLevelNoReport,eErrorLevelWarning,eErrorLevelError,eErrorLevelFatal

TErrorLevel DM_ErrorLevel();

Returns: TErrorLevel

Extension method of IViolationHelper (using EDP;).

DM_IsSuppressed​

No description yet.

bool DM_IsSuppressed();

Returns: bool

DM_RelatedObjectCount​

This method returns the number of related objects of the violation.

int DM_RelatedObjectCount();

Returns: int

DM_RelatedObjects​

This method returns the indexed related object of the violation.

IDMObject DM_RelatedObjects(int argIndex);
ParameterTypePassing
argIndexintvalue

Returns: IDMObject

Extension method of IViolationHelper (using EDP;).

Inherited members​

Returned by​

IDocument.DM_CreateViolation, IProject.DM_Violations