PC-DMIS 2022.1 Object Library
WaitUntilExecuted Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
Command
This is an expression that evaluates to a Command object. This is the command that is waited for.
timeout
This is the number of seconds (a Long value) to wait for the command to finish execution. If you have a non-positive value, the method waits indefinitely.
Arm
PCDLRN ActiveX DLL > PartProgram Object : WaitUntilExecuted Method

Glossary Item Box

Description

This method waits until the specified Command object executes, or until Timeout seconds pass.

Syntax

Visual Basic
Public Function WaitUntilExecuted( _
   ByVal Command As Command, _
   ByVal timeout As Long, _
   ByVal Arm As Long _
) As Boolean

Parameters

Command
This is an expression that evaluates to a Command object. This is the command that is waited for.
timeout
This is the number of seconds (a Long value) to wait for the command to finish execution. If you have a non-positive value, the method waits indefinitely.
Arm

Return Type

Boolean value. This methods immediately returns FALSE if the measurement routine is not executing. It returns TRUE if the specified Command executes before Timeout seconds pass. It returns FALSE if the Command does not execute before Timeout seconds pass. If Timeout is a non-positive value, and the Command never executes, this function never returns a value.

See Also

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