Setup Sheet manipulation

Setup Sheet manipulation

Eskondedo
Advocate Advocate
1,550 Views
2 Replies
Message 1 of 3

Setup Sheet manipulation

Eskondedo
Advocate
Advocate

Hello all,

Glad to see the transition to AD went well.  I have some questions about manipulating the setup sheets and how to go about changing things.  As it sits now we are currently creating NCprograms with multiple toolpaths within it and I am looking to create just the summary portion with a similar formatting as shown below.  I would like to add the programmer box under the Project name within the same table and highlight the tool name and gauge length fields but everytime I attempt to do this my editor (wordpad) tries to save it back out as a richtext file and not HMTL.  On top of this I cannot seem to get more then 4 toolpaths to show per page even though the allowable space for this seems to be big enough in the style file.  I am not well versed with HTML but can find my way around in time.  Any help here would be a godsend and would prevent an awful lot of manipulation at the printscreen and save trees 🙂  Thanks all

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Start documentation header comment

PowerMILL Setup Sheets: default template for project-level Summary Setup Sheet

============================================================================
Copyright 2005 Delcam plc., Birmingham, UK
============================================================================

History.
DICC  Who When     What
===== === ======== =========================================================
58636 SPD 30/11/05 Written.
59245 SPD 09/01/06 Replaced PD_Date, PD_Time with project.date, project.time.
                   Also: tool.radius is no more.
62458 SPD 03/11/06 Moved the XML declaration to the start of the file.
63781 CNJ 24/11/06 Change PMillLogo with CompanyLogo
67496 MH  24/09/07 Remove DOCTYPE
111034 MOM 13/03/14 Replaced deprecated parameters
111249 MOM 28/03/14 Syntax adjustment for some parameters
111727 MOM 14/04/14 Use of metatag to emulate IE9 
112626 MOM 29/05/14 Adjust the column widths to fit with the new fixed
                    table layout.
=============================================================================

End documentation header comment -->

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>
  <title>Project ${project.Name}: summary</title>
  <link rel="stylesheet" type="text/css" href="../global/style.css" />
</head>

<body>
  <div class="a4page">

  <!-- Company logo image tag -->
  ${project.CompanyLogo}

  <table>
    <tr><td colspan="3" class="title">PowerMILL Setup Sheet</td></tr>
    <tr>
      <th>Project</th><td colspan="2">${project.Name}</td>
    </tr>
    <tr>
      <th>NC Program</th><td colspan="2">${ncprogram.NameTag}</td>
    </tr>
    <tr>
      <th>Total Program Run Time</th><td colspan="2">${time_to_string(project.nTotalTime, "M")}</td>
    </tr>
  </table>


  <!-- Toolpath summary table follows. -->
  <table>

    <thead>
      <tr>
        <td colspan="9" class="title">Summary sheet ${SU_SheetNo} of ${SU_MaxSheets}</td>
      </tr>
      <tr>
        <th colspan="4">Toolpath Name</th>
        <th colspan="2">Tool Name</th>
        <th>Runtime</th>
        <th colspan="2">Tool Info</th>
      </tr>
    </thead>

    <tbody>
      <summaryrow>
        <tr>
          <td colspan="4" rowspan="5">${stoolpath.NameTag}</td>
          <td colspan="2" rowspan="5">${tool.Identifier}</td>
          <td rowspan="5">${time_to_string(stoolpath.nCuttingTime,"M")}</td>
          <th rowspan="1">Type</th>
          <td rowspan="1">${tool.Type}</td>
        </tr>
        <tr>
          <th>Diameter</th><td>${tool.Diameter}</td>
        </tr>
        <tr>
          <th>Tip radius</th><td>${tool.TipRadius}</td>
        </tr>
        <tr>
          <th>Length</th><td>${tool.gauge_length}</td>
        </tr>
        <tr>
          <th>Number</th><td>N/A</td>
        </tr>
      </summaryrow>
    </tbody>

  </table>

  </div>
</body>

</html>

 

 

0 Likes
Accepted solutions (1)
1,551 Views
2 Replies
Replies (2)
Message 2 of 3

robert.filiks
Autodesk
Autodesk
Accepted solution

Try this: 

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Start documentation header comment

PowerMILL Setup Sheets: default template for project-level Summary Setup Sheet

============================================================================
Copyright 2005 Delcam plc., Birmingham, UK
============================================================================

History.
DICC Who When What
===== === ======== =========================================================
58636 SPD 30/11/05 Written.
59245 SPD 09/01/06 Replaced PD_Date, PD_Time with project.date, project.time.
Also: tool.radius is no more.
62458 SPD 03/11/06 Moved the XML declaration to the start of the file.
63781 CNJ 24/11/06 Change PMillLogo with CompanyLogo
67496 MH 24/09/07 Remove DOCTYPE
111034 MOM 13/03/14 Replaced deprecated parameters
111249 MOM 28/03/14 Syntax adjustment for some parameters
111727 MOM 14/04/14 Use of metatag to emulate IE9
112626 MOM 29/05/14 Adjust the column widths to fit with the new fixed
table layout.
03/01/16 Added row with programmer name
Removed rows with detail of tool
Added field with tool gauge_length
=============================================================================

End documentation header comment -->

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>
<title>Project ${project.Name}: summary</title>
<link rel="stylesheet" type="text/css" href="../global/style.css" />
</head>

<body>
<div class="a4page">

<!-- Company logo image tag -->
${project.CompanyLogo}

<table>
<tr><td colspan="3" class="title">PowerMILL Setup Sheet</td></tr>
<tr>
<th>Project</th><td colspan="2">${project.Name}</td>
</tr>
<tr>
<th>Programmer Name</th><td colspan="2">${project.Programmer}</td>
</tr>
<tr>
<th>NC Program</th><td colspan="2">${ncprogram.NameTag}</td>
</tr>
<tr>
<th>Total Program Run Time</th><td colspan="2">${time_to_string(project.nTotalTime, "M")}</td>
</tr>
</table>


<!-- Toolpath summary table follows. -->
<table>

<thead>
<tr>
<td colspan="9" class="title">Summary sheet ${SU_SheetNo} of ${SU_MaxSheets}</td>
</tr>
<tr>
<th colspan="4">Toolpath Name</th>
<th colspan="2">Tool Name</th>
<th>Runtime</th>
<th colspan="2">Length of tool assembly</th>
</tr>
</thead>

<tbody>
<summaryrow>
<tr>
<td colspan="4" rowspan="1">${stoolpath.NameTag}</td>
<td colspan="2" rowspan="1">${tool.Identifier}</td>
<td >${time_to_string(stoolpath.nCuttingTime,"M")}</td>
<td colspan="2">${tool.gauge_length}</td>
</tr>
</summaryrow>
</tbody>

</table>

</div>
</body>

</html>



Robert Filiks
Software QA Engineer

My screencasts | Advanced Manufacturing | Tips and Best Practices

0 Likes
Message 3 of 3

Eskondedo
Advocate
Advocate

So I have been manipulating the code over last few months as we nail down what it is exactly we need on the shop floor and one that has been changed is cutter comp.  In my current sheet it is outputting the setting for compensation but I would like to clean it up some and only identify the toolpaths with comp.

   What I am looking for is to have the toolpaths with comp values set to "None" to show up blank and the comp values that have anything else to show in the box and be highlighted yellow.  Is this possible?  I am not well versed in HTML and have been messing with it for a while but it seems to whoopin my butt.  Below is my coding im sure the line:

 

<td align="center" colspan="3">${nctoolpath.CutterRadiusCompensation.Type.Value}</td>

 

Needs some form of ifelse logic built into it but im at a loss for that one.

 

Thanks in advance!

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Start documentation header comment

PowerMILL Setup Sheets: default template for project-level Summary Setup Sheet

============================================================================
Copyright 2005 Delcam plc., Birmingham, UK
============================================================================

History.
DICC  Who When     What
===== === ======== =========================================================
58636 SPD 30/11/05 Written.
59245 SPD 09/01/06 Replaced PD_Date, PD_Time with project.date, project.time.
                   Also: tool.radius is no more.
62458 SPD 03/11/06 Moved the XML declaration to the start of the file.
63781 CNJ 24/11/06 Change PMillLogo with CompanyLogo
67496 MH  24/09/07 Remove DOCTYPE
111034 MOM 13/03/14 Replaced deprecated parameters
111249 MOM 28/03/14 Syntax adjustment for some parameters
111727 MOM 14/04/14 Use of metatag to emulate IE9
112626 MOM 29/05/14 Adjust the column widths to fit with the new fixed
                    table layout.
=============================================================================

End documentation header comment -->

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>
  <title>Project ${project.Name}: summary</title>
  <link rel="stylesheet" type="text/css" href="../global/style.css" />
</head>

<body>
  <div class="a4page">

  <!-- Company logo image tag -->
  ${project.CompanyLogo}

 


  <!-- Toolpath summary table follows. -->
  <table>

    <thead>
      <tr>
        <td colspan="10" class="title">Summary sheet ${SU_SheetNo} of ${SU_MaxSheets}</td>
      </tr>
      <tr>
        <th colspan="5">Toolpath Name</th>
        <th colspan="2">Runtime</th>
  <th colspan="3">Is Comp Present?</th>
      </tr>
    </thead>

    <tbody>
      <summaryrow>
        <tr>
          <td colspan="5">${stoolpath.NameTag}</td>
          <td align="center" colspan="2">${time_to_string(stoolpath.nCuttingTime,"M")}</td>
    <td align="center" colspan="3">${nctoolpath.CutterRadiusCompensation.Type.Value}</td>
      </summaryrow>
    </tbody>

  </table>
  </div>
</body>

</html>

0 Likes