RobotStudio event

WorkObject Alias

Hello:

I would like to establish a WorkObject Alias but have not had much luck.
Is it possible?

ex: PERS wobj1=:rotary_center;

Does anyone have suggestions about how to implement?

thanks,
Jeremy 

Comments

  • Hello:
    Normally you declare both workobjects as persistant and the do the assign in  your program.

     

    PERS wobjdata wobj1:= [ FALSE, TRUE, "", [ [0, 0, 0], [1, 0, 0,0] ], [ [0, 0, 0], [1, 0, 0 ,0] ] ];

    PERS wobjdata rotary_center:= [ FALSE, TRUE, "", [ [0, 0, 0], [1, 0, 0,0] ], [ [0, 0, 0], [1, 0, 0 ,0] ] ];

     

    In your program you would have the line wobj1:=rotary_center;


    <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    Note assign is := not =:

    BR  Jim Proulx