#
#
ASSIGN: No_return_home=0;
ASSIGN: Tool_ent= CopyEntity(FindUserData(Syn_tool_desc,WsToolData),WsFalse);
SELECT: ValidGeometry(Tool_ent)
CASE: 1
ASSIGN: Tool_desc=ToolIdName(Tool_ent);
ASSIGN: Tool_symbol=UserDataStr(Tool_ent,"Tool image:");
ASSIGN: Tool_file=UserDataStr(Tool_ent,"Tool file name:");
ASSIGN: Data_type=ToolTypeStr(Tool_ent);
ASSIGN: Tool_dia=ToolDiameter(Tool_ent);
ASSIGN: Tnose_rad=ToolNoseRadius(Tool_ent);
ASSIGN: Tnose_quad=ToolQuadrant(Tool_ent);
ASSIGN: Operation_desc=UserDataStr(Tool_ent,"Operation description:");
ASSIGN: Roll_desc=UserDataStr(Tool_ent,"Roll description:");
ASSIGN: Prog_number=GetUserValue(Tool_ent,"Operation number:");
ASSIGN: Tcode=GetUserValue(Tool_ent,"CNC tool-turret number:");
ASSIGN: Tcode=INT(Tcode/100);
ASSIGN: Tool_num=Tcode;
ASSIGN: Tcode=100*Tcode+Tcode;
ASSIGN: Tool_num=Tcode;
ASSIGN: Feed_to_chuck=GetUserValue(Tool_ent,"Feedrate toward chuck(ipr):");
ASSIGN: Feed_from_chuck=GetUserValue(Tool_ent,"Feedrate from chuck(ipr):");
ASSIGN: Feed_to_cline=GetUserValue(Tool_ent,"Feedrate toward centerline(ipr):");
ASSIGN: No_return_home=GetUserValue(Tool_ent,"No return home:");
ASSIGN: Multi_feed_on=1;
END SELECT:
# Added this for testing turbopost manually
ASSIGN: Stat= DeleteEntity(Tool_ent);
