摘要行

PowerMill 包含自定义 HTML 标记 <summaryrow>... </summaryrow>,可让您为 NC 程序中的每条刀具路径重复在这些标记之间放置的单元。

警告: 系统仅为摘要模板类型解析这些标记。

必须在 <summaryrow> 标记后紧跟 <tr> 标记。这是因为 PowerMill 会通过对每条刀具路径所需的行数进行计数,来计算每个摘要页面的刀具路径数量。同样,必须在 </summaryrow> 标记前放置 </tr>

请考虑以下简单示例,您可以看到,对于 NC 程序中的每条刀具路径,在三个标题(刀具路径、策略和刀具)下重复了含有 TAP 文件、策略和刀具类型值的单元:

<table>
	<thead>
		<tr>
			<th>Toolpath / TAP File</th>
			<th>Strategy</th>
			<th>Tool</th>
		</tr>
	</thead>
	<tbody>
		<summaryrow>
			<tr>
				<td> {toolpath}</td>
				<td>{strategy}</td>
				<td>{tool.type}</td>
			</tr>
		</summaryrow>
	</tbody>
</table>

使用此模板创建设置清单时,浏览器中的结果应如下所示:

<summaryrow> 标记可用于更复杂的布局,如下面显示的一个布局。如同前面一样重复含有 TAP 文件和策略值的单元,但是这次我们将“刀具”列分割为两列,并添加包含刀具相关数据的五行,然后为每条刀具路径重复此单元:

<table>
	<thead>
		<tr>
			<th>Toolpath / TAP File</th>
			<th>Strategy</th>
			<th colspan="2">Tool</th>
		</tr>
	</thead>
	<tbody>
		<summaryrow>
			<tr>
				<td rowspan="6">{toolpath}</td>
				<td rowspan="6">{strategy}</td>
			</tr>
			<tr>
				<th>Type</th><td>{tool.type}</td>
			</tr>
			<tr>
				<th>Diameter</th><td>{tool.diameter}</td>
			</tr>
			<tr>
				<th>Tip radius</th><td>{tool.tip_radius}</td>
			</tr>
			<tr>
				<th>Length</th><td>{tool.length}</td>
			</tr>
			<tr>
				<th>Number</th><td>{tool.number}</td>
			</tr>
		</summaryrow>
	</tbody>
</table>

创建设置清单时,结果如下所示: