Get handles for robot positions in Python

Forum Forums Visual Components 4.0 Robot Programming Get handles for robot positions in Python

Visual Components Essentials has been officially released, download link

Be sure to read the Forum Rules and Guidelines before start using the Forum.

This topic contains 0 replies, has 1 voice, and was last updated by zesty zesty 11 months, 2 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1342
    zesty
    zesty
    Participant

    To get a handle and manipulate robot positions, get a handle for a vcPositionFrame object.

    You can do this by:

    1. Get a handle for the vcMotionStatement or vcPositionStatement for the robot position. In most cases, you will need to access vcExecutor.Program.MainRoutine or get a handle for another routine in program, and then use the Scope of routine to get handle for statement.
    2. Any statement with positions would inherit vcPositionStatement, so use its Positions property to get a list of positions, which are vcPositionFrame objects.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.