Collapse All Expand All

PC-DMIS 2019 R1 Object Library |
UsedColor Method
See Also Send Topic Feedback | See Object Hierarchy Chart

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.

PCDLRN ActiveX DLL > Colors Collection : UsedColor Method

Glossary Item Box

# Description

This returns the color currently associated with the defined Command Type ID or Color Section ID. If a color is not defined for a feature type, the parent color is recursively searched until the default color is reached.

# Syntax

Visual Basic
    Public Function UsedColor( _
       ByVal UID1 As {Unrecognised type 21}, _
       ByVal UID2 As {Unrecognised type 21} _
    ) As Long

# 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.

# See Also

Colors Collection | Colors Members

Copyright © 2019. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.