vcSchemaPositionFrame
vcSchemaPositionFrame is a position defined by schema properties. Generally, this is a position of a path statement. One case is to extract data from the position, and then export or use the data elsewhere.
Properties
The properties are the schema properties associated with the position. For example, the position of a vcPathStatement object would have at least seven, built-in properties.
Examples
Example. Get configuration warnings of path positions
from vcScript import * import vcMatrix comp = getComponent() rx = comp.findBehaviour("Executor") mr = rx.Program.MainRoutine mr.clear() path = mr.addStatement("Path") path.beginBatchUpdate(10) for i in range(10): position = vcMatrix.new() position.translateAbs(1000,i*100,1000) path.setSchemaValues(i,"Position",position) path.endBatchUpdate(10) #use iterator to make list of positions positions = list(path.Positions) rc = rx.Controller for p in positions: target = rc.createTarget(p.Position) #simple test with Generic Articulated Robot #warning and status numbering are flipped config_warning = target.getConfigWarning(target.RobotConfig) status = 7 - config_warning p_index = positions.index(p) path.setSchemaValues(p_index, "PositionStatus", status) app = getApplication() app.render() |