vcMultiPositionTargetContainer

A container for multiple position targets.

See in: Overview

Module: vcRobotics2

Parent: -

Children -

Referenced by: vcRobotProgramManager.TargetContainer, vcRobotRoutine.TargetContainer

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
OwnedTargetsvcListRGets the targets owned by this container, if any.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
createTargetvcPositionTargetvcPositionTargetType type,
Optional Keyword[name = String]
Creates a new target into this container.
See more
Parameters:
type (str): Type name of the statement.
Optional: name (str): Name for the new target. If omitted, a name will be automatically generated.

Returns:
vcPositionTarget: The new target.

Exceptions:
ValueError: When the target name is reserved or when the type name is empty or not supported.
findTargetvcPositionTargetString nameClones the statement within or into this scope.
See more
Parameters:
statement (vcExecutor2.vcStatement): A statement to clone.
index (int): Index to insert the statement to. Must be zero or positive.
If index is greater than the number of contained statements, the cloned statement is added to the end.

Returns:
vcExecutor2.vcStatement: The copied instance.

Exceptions:
RuntimeError: When copying fails due to incompatible statement.

Events

Learn how to use events here. The events are also inherited from the parent class.

NameParametersDescription
OnTargetAddedvcPositionTarget positionInvoked when a new target position is added to the object.

Parameters:
target position (vcPositionTarget): The newly added target position.
OnTargetRemovingvcPositionTarget positionInvoked when a target position is about to be removed from the object.
See more
Parameters:
target position (vcPositionTarget): The target position about to be removed.