PC-Dmis 2010 MR3 Object Library | Send comments on this topic. | See Object Hierarchy Chart
Add Method
See Also

Collapse All Expand All

UID1

  Long value specifying the Command Type ID or Color Section ID.

  - If defining a specific Command Type, this is the ID from the OBTYPE enumeration.
  - If defining a Color Section (from the Command Text Colors list on the Color Editor dialog box), this is the ID from the ENUM_COLOR_SECTION enumeration.

UID2

  Long value specifying the second part of a 128 bit UID. UID2 is reserved for Command IDs that exists in the Toolkit environment. Since Toolkit command IDs use 128 bit values the only way to get at their data using automation is to supply two parameters. For typical automation uses (non Toolkit), you won't need this parameter and can simply supply a 0 value.

# Description

Adds the color object associated with CommandTypeOrColorSection parameter. If already exists the previous one is returned.

This method creates a new color node associated with the specified Command Type ID or Color Section ID, returning a Color object for the added node. Once you add a node, you can then define the colors used for the Standard, Marked, Debug, and OutTol.

# Syntax

Visual Basic

    Public Function Add( _
       ByVal UID1 As {Unrecognised type 21}, _
       ByVal UID2 As {Unrecognised type 21} _
    ) As Color

# Parameters

UID1

  Long value specifying the Command Type ID or Color Section ID.

  - If defining a specific Command Type, this is the ID from the OBTYPE enumeration.
  - If defining a Color Section (from the Command Text Colors list on the Color Editor dialog box), this is the ID from the ENUM_COLOR_SECTION enumeration.
UID2

  Long value specifying the second part of a 128 bit UID. UID2 is reserved for Command IDs that exists in the Toolkit environment. Since Toolkit command IDs use 128 bit values the only way to get at their data using automation is to supply two parameters. For typical automation uses (non Toolkit), you won't need this parameter and can simply supply a 0 value.

# Return Type

Color object.

# See Also

Colors Collection

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.