=== First a word of warning. ===

Make backup files before making any edits. The report generator files are
very unforgiving. If there is an error in the syntax it  may not be obvious.
Typically if an error is encountered the report just fails without any error
messages, beeps or crashes. The only clues you'll find are by selecting
"Utility - Diagnostics" from the SmartCAM menu. These diagnostic messages
are cryptic but should give you a hint as to what the problem is. I have
also found that occasionally after such an error, the report generator will
not work with "any" files until you exit and restart SmartCAM.

--- Onward ---

The report generator uses a format character syntax similar to but not
identical to the F_WRITE( ) macro command. These formats can be found
staring on page 39 of the SmartCAM Customization Guide


% (required)         Starts a character sequence that formats a value.

flags (optional)     - left-justifies the value.
                     + inserts the appropriate sign, + or -, before the
value.
                     (space) inserts a blank space before a positive value.

width (optional)     Sets the minimum size (number of characters) of the
field.
                     i.e. %10s = 10 character fixed length string

prec (optional)      Sets the minimum number of digits to display for
integers or the
                     number of decimal places for floating point values.
                     i.e. %3.4f = 3 places to the left, 4 places to the
right

data type (required) d = format as an integer value.
                     f = format as a floating point value.
                     s = format as a string value.

                     \n Forces a new line.
                     \t Inserts a horizontal tab.
                     \\ Inserts a backslash.
                     \" Inserts a double quotation mark.
                     \' Inserts a single quotation mark.


--- example ---

In the example below, the tool description string, tl_desc, will be
formatted by the expression "%-50s". This defines the output as a left
justified 50 character fixed length string.

procedure section_1030000
{
        format ("T%-d : %-50s ATC [   ]     Z OFFSET [   ]\n", tl_num,
tl_desc);
}


--- Note ---

There is a utility called "Report Assistant" written by Keith Knuth of CAMAX
on the V11.5 CD. It is in a ZIP file called "Rep301b.zip" and can be found
on the CD in the folder "\TEC_SUPP\PUBFILES\TOOLS\". This utility has a help
file and was intended to be a teaching aid in learning to write report
format files. It's major limitation is that it can only support outputting a
single piece of data per line. Once the files are created you can examine
their syntax and make modifications with a text editor. I learned to edit
these files the hard way before this utility was written. Because of this I
haven't really used the Report Assistant but It may prove helpful to
beginners.


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



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 29, 2000 10:46 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Setup sheets revisited


Hi all,
     Among the many items on my "I'll get to it when I have time" list is
this setup sheet topic. Is there a way to force a certain number of spaces
for a text output such as the tool description (#TDESC)? I would like to
output a simple tool list along these lines:

T1 : Spot Drill
ATC [   ]     Z OFFSET [   ]
T2 : 5/16" Drill
ATC [   ]     Z OFFSET [   ]
T3 : 5/8" Dia 90 Deg Chamfer Tool                      ATC [   ]     Z
OFFSET [   ]
T4 : 3/8-16 Tap
ATC [   ]     Z OFFSET [   ]

The above tool list is for example only, I just want to know if it's
possible in the post language to format the spaces for a text string so
that data like the ATC and Z offset check list in the example above can be
lined up.

Chris


======================================================================
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