PC-DMIS 2021.1 Object Library
IsAllowed Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
UID1

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

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 : IsAllowed Method

Glossary Item Box

Description

This checks whether or not the specified Command Type or Color Section ID is valid in the current PC-DMIS configuration. If it is valid, it returns TRUE.

Syntax

Visual Basic
Public Function IsAllowed( _
   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.

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

Long value. This returns -1 (or True) if the function succeeds and 0 (or False) if it does not.

See Also

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