You are on page 1of 4

CAMWorks

XML Setup Sheet Information

Disclaimer
Geometric Technologies makes no warranties, either express or implied with respect to this document. Geometric Technologies reserves the right
to revise and improve products as it sees fit, and to revise the specifications and information contained herein without prior notice. Due to
continuing product development, specifications and capabilities described in this document are subject to change without notice.

Copyright ©2009, 2010 Geometric Technologies All Rights Reserved.

Geometric Technologies (a division of Geometric Americas, Inc.)

April 2010
Sr.No. XML Fields XSL Reference

Setup Sheet Data/Report Heading


1 Company Name: <P align="center"><FONT SIZE="7" COLOR="#01106D"><B> Company Name</B></FONT></P>
e.g., Geometric Ltd. <P align="center"><FONT SIZE="7" COLOR="#01106D"><B> Geometric Ltd</B></FONT></P>

Table for Part File and related info


1 Material <td><font color="#6E0204"><B>Material</B></font></td>
2 Stock Size <td><font color="#6E0204"><B>Stock Size</B></font></td>
3 Company <td><font color="#6E0204"><B>Company</B></font></td>
4 Date/Time <td><font color="#6E0204"><B>Date/Time</B></font></td>
5 Units <td><font color="#6E0204"><B>Units</B></font></td>
6 CNC Mach <td><font color="#6E0204"><B>CNC Mach</B></font></td>
7 Part File <td><font color="#6E0204"><B>Part File</B></font></td>
8 Programmer <td><font color="#6E0204"><B>Programmer</B></font></td>

e.g., To add value of Material:


<td><font color="#6E0204"><B>Material</B></font></td>
<td><font color="#6E0204"><B><xsl:value-of select=" @WorkPieceMaterial"/></B></font></td>

To insert Date and Time:


<td><font color="#6E0204"><B>Date/Time</B></font></td>
<td><font color="#6E0204"><B><xsl:value-of select=" @CustomInfoDateTime"/></B></font></td>

Set Up Information And Machining Time


1 Setup No <td><font color="#6E0204"><B>Setup No</B></font></td>
2 Setup Name <td><font color="#6E0204"><B>Setup Name</B></font></td>
3 Setup Origin <td><font color="#6E0204"><B>Setup Origin</B></font></td>
4 Mach Time <td><font color="#6E0204"><B>Mach Time</B></font></td>

e.g., To insert Setup Name:


<td><font color="#6E0204"><B>Setup Name</B></font></td>
td><font color="#6E0204"><B><xsl:value-of select="@SetupAttrSetupName"/> </B> </font> </td>
Details of the Operations (Mill /Mill Turn/Turn)
1 Operation <td><font color="#6E0204"><B>Operation</B></font></td>
2 Speed <td><font color="#6E0204"><B>Speed</B></font></td>
3 Feed <td><font color="#6E0204"><B>Feed</B></font></td>
4 Tool Station No <td><font color="#6E0204"><B>Tool Station No</B></font></td>
5 Tool Description <td><font color="#6E0204"><B>Tool Description</B></font></td>
6 Holder Description <td><font color="#6E0204"><B>Holder Description</B></font></td>
7 Holder Number <td><font color="#6E0204"><B>Holder Number</B></font></td>
8 Mach Depth <td><font color="#6E0204"><B>Mach Depth</B></font></td>
9 Tlp Len <td><font color="#6E0204"><B>Tlp Len</B></font></td>
10 Time <td><font color="#6E0204"><B>Time</B></font></td>

e.g., To insert Operation Name:


<td><font color="#6E0204"><B>Operation</B></font></td>
<td><font color="#6E0204"><B><xsl:value-of select="@OperationName"/></B></font></td>

To insert Speed:
<td><font color="#6E0204"><B>Speed</B></font></td>
<td><font color="#6E0204"><B><xsl:value-of select="@MillSpindleSpeed"/></B></font></td>

Adding Images to Setup Sheet


1 Image Path* <xsl:value-of select="@ImagePath"/>
2 Image size <img src= "{$imageUrl}" WIDTH="400" HEIGHT="400"></img>
* For default templates, this path is set where images are stored after generating setup sheets. You can modify this path for your requirements.
Notes:
1. All Code and descriptions referenced above is for CAMWorks Default Templates.(Mill/Mill Turn/Turn).
2. Above mentioned are the static fields that can be modified in XSL as per your requirements and the values of those fields will come from CAMWorks data that is output to XML.
e.g., If you modify the value of Time in Operations to "TIME," in XML it will show "TIME," but the actual value of machining time will be there from CAMWorks.
3. Additional fields can be added to setup sheets and the applicable CAMWorks variable can to be set to get corresponding value in XML.
4. Most of all data is output to XML that can be made visible by adding its structure in XSL.
XML Representation Corresponding XSL Code

Static Fields Dynamic Fields

<P align="center"><FONT SIZE="7" COLOR="#01106D"><B>Geometric Ltd</B>


</FONT></P>

<td><font color="#6E0204"><B>Material</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@WorkPieceMaterial"/></B></font></td>


<td><font color="#6E0204"><B>Stock Size</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@WorkPieceLength"/>, <xsl:value-of select="@WorkPieceWidth"/>,
<xsl:value-of select="@WorkPieceHeight"/></B></font></td>
<td><font color="#6E0204"><B>Company</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@CustomInfoCompany"/></B></font></td>
<td><font color="#6E0204"><B>Date/Time</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@CustomInfoDateTime"/></B></font></td>
<td><font color="#6E0204"><B>Units</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@Unit"/></B></font></td>
<td><font color="#6E0204"><B>CNC Mach</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@MchName"/></B></font></td>
<td><font color="#6E0204"><B>Part File</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@CustomInfoPartFile"/></B></font></td>
<td><font color="#6E0204"><B>Programmer</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@notknown"/></B></font></td>

<td><font color="#6E0204"><B>Setup No</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@SetupAttrSetupNo"/> </B>


<td><font color="#6E0204"><B>Setup Name</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@SetupAttrSetupName"/> </B>
<td><font color="#6E0204"><B>Setup Origin</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@SetupAttrCoordX"/>,
<td><font color="#6E0204"><B>Mach Time</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@SetupAttrMachTime"/> </B>

<td><font color="#6E0204"><B>Operation</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@OperationName"/></B></font></td>


<td><font color="#6E0204"><B>Speed</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@MillSpindleSpeed"/></B></font></td>
<td><font color="#6E0204"><B>Feed</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@MillOpFeed"/></B></font></td>
<td><font color="#6E0204"><B>Tool Station No</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@ToolStnNo"/></B></font></td>
<td><font color="#6E0204"><B>Tool Description</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@ToolComment"/></B></font></td>
<td><font color="#6E0204"><B>Holder Description</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@HolderComment"/></B></font></td>
<td><font color="#6E0204"><B>Holder Number</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@HolderNumber"/></B></font></td>
<td><font color="#6E0204"><B>Mach Depth</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@RelationMachDepth"/></B></font></td>
<td><font color="#6E0204"><B>Tlp Len</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@RelationTlpLen"/></B></font></td>
<td><font color="#6E0204"><B>Time</B></font></td> <td><font color="#6E0204"><B><xsl:value-of select="@RelationTime"/></B></font></td>

<xsl:value-of select="@ImagePath"/>
<img src= "{$imageUrl}" WIDTH="400" HEIGHT="400"></img>

You might also like