定义用户表
定义用户表主要有两步:
• 使用指定的名称以及行和列尺寸的估计值创建用户表。
• 使用所需数据填充用户表。
下面列出的是用于定义用户表的示例:
{
This is the Macro 'UTABLE1' to define a user table called 'Mach_Op'.
It then fills the user table with data in the title string 1 and
from rows 1 to 5 in column 1.
}
DEFINE UTABLE1
CREATE_LTAB 5 2 'Mach_Op'
WRITE_LTAB 'Mach_Op' 1 1 'Type of Machining Operation'
WRITE_LTAB 'Mach_Op' 2 1 'Machine Tool Parameters'
WRITE_LTAB 'Mach_Op' 3 1 'Cutting Tool Parameters'
WRITE_LTAB 'Mach_Op' 4 1 'Workpart Characteristics'
WRITE_LTAB 'Mach_Op' 5 1 'Other Operating Parameters'
WRITE_LTAB 'Mach_Op' TITLE 1 'Characteristics of a Machining Operation'
END_DEFINE
|
|
在上述以及后面的所列内容中,{} 括号内的文本仅为注释,并不是宏程序的一部分。
|
可以使用文本编辑器创建上述内容并将其保存至文件 utable1.mac 中。