Convert name of Work Object to a string

Hi,

I am trying to convert the name of the current selected work object to a string to display in a uimsgbox. I know the load identify routine does it with tool data, and I wasn’t sure how it was being done in that. Any help would be greatly appreciated.

Thanks,
Dustin

I think ArgName does what you want.

regards,
Johannes

Try

PERS wobjdata wobjTemp:=[FALSE,TRUE,"",[[0,0,0],[1,0,0,0]],[[0,0,0],[1,0,0,0]]];
PERS string stTemp:="wobj0";
PROC Main()
GetSysData wobjTempObjectName:=stTemp;
**TpWrite stTemp;**
ENDPROC

Where:
wobjTemp
is a persistent or variable that will have the value of the current workobject
stTemp
is a persistent or variable string that will have the name of the current workobject

You can change wobjTemp with a tooldata or loaddata to have the same effect with those datatypes.

att.