When I try it like this, Smartcam crashes ("program has performed an illegal
function and will be shutdown") whenever I try to print out report. Any
ideas?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lauzus, Frederick
Sent: Friday, August 10, 2001 4:24 AM
To: Smartcam Users Group (E-mail)
Subject: RE: [mfg-smartcam] Tool reports


You need to use the map function within the format statement in place of the
data tag.
You also need to identify the data type as a string and it's location within
the quotes of the format statement using %s. In your example immediately
after the word "Tool:".

//original
{
        format map ( tl_mat, ["HSS","Carbide","Cobalt","Ceramic"]);
        format("Tool No=%-4d - %s\n", tl_num, tl_desc);
        format("    Length:%-8.4f  Dia:%-8.4f Flutes:%-2.0f Tool:% \n",
tl_len,
        tl_dia, n_flutes, tl_mat);
      format("    Tool Notes:%s\n\n", tm_notes);
}


//modified
{
        format("Tool No=%-4d - %s\n", tl_num, tl_desc);
        format("    Length:%-8.4f  Dia:%-8.4f Flutes:%-2.0f Tool:%s\n",
tl_len,
        tl_dia, n_flutes, map ( tl_mat,
["HSS","Carbide","Cobalt","Ceramic"]));
      format("    Tool Notes:%s\n\n", tm_notes);
}


=============================================
 Fred Lauzus, CAM Programming Coordinator
 High Steel Structures, Incorporated
 mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
 



-----Original Message-----
From: Mike Sharp [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 4:24 PM
To: Smartcam Users Group (E-mail)
Subject: RE: [mfg-smartcam] Tool reports


I keep getting an error, "argument expecting integer". I have included the
report file.

Thanks
Mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lauzus, Frederick
Sent: Thursday, August 09, 2001 6:59 AM
To: Smartcam Users Group (E-mail)
Subject: RE: [mfg-smartcam] Tool reports


You need to "map" a text string to the corresponding integer value of the
tag


map ( tl_mat, ["HSS", "Carbide", "Cobalt", "Ceramic"])
� 

=============================================
 Fred Lauzus, CAM Programming Coordinator
 High Steel Structures, Incorporated
 mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
 


-----Original Message-----
From: Mike Sharp [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 2:50 PM
To: Smartcam Users Group (E-mail)
Subject: [mfg-smartcam] Tool reports


Hi everyone

I am trying to get my tool reports to output the tl_mat tag as carbide,HSS
etc. , but all I get is 1 or 2. How can I define the tl_tag as a string to
output what I want?

Thanks

Mike
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to