PC-DMIS 2022.1 Object Library
GetVariableValue Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
VarName
String value representing a variable object.
PCDLRN ActiveX DLL > PartProgram Object : GetVariableValue Method

Glossary Item Box

Description

This method returns a variable object specified by the string in VarName.

Syntax

Visual Basic
Public Function GetVariableValue( _
   ByVal VarName As String _
) As Variable

Parameters

VarName
String value representing a variable object.

Return Type

Variable object.

Remarks

PC-DMIS variables only hold values during execution; at learn time PC-DMIS variables have a value of zero. The GetVariableValue and SetVariableValue methods only change a variable's value during the script's execution. If you want to permanently change a value of a variable inside PC-DMIS, you should use the PutText method instead.

Example

See Also

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