您可以使用 Electrode 脚本语言直接自定义或创建 EDM 脚本。这样,无需自定义 .con 文件即可修改 EDM 文件。但对于使用已有 .con 文件的客户而言,支持将旧 .con 文件的设置加载至脚本中。
有关如何创建和编辑脚本的详细说明位于 custom_script_format.html 文件中,该文件位于 PowerShape 的安装目录中。默认目录为:
C:\Program Files\Autodesk\PowerShapexxxxx\file\electrode\custom_script_format.html
其中 xxxxx 是 PowerShape 的版本号,C 是安装 PowerShape 的磁盘号。
有关脚本中所用替代串的完整列表,请参见位于以下位置的 electrode_substitutions.txt 文件:
C:\Program Files\Autodesk\PowerShapexxxxx\file\electrode\electrode_substitutions.txt
标准脚本适用于以下制造商:
|
制造商 |
脚本名 |
|
AGIE |
electrode_script_AGIE.xml |
|
CERTA |
electrode_script_certa.xml |
|
Charmilles |
electrode_script_Charmilles.xml |
|
EPX |
electrode_script_EPX.xml |
|
Exeron |
electrode_script_Exeron.xml |
|
Mitsubishi |
electrode_script_Mitsubishi_EPX.xml electrode_script_Mitsubishi_ESPER.xml |
|
ONA |
electrode_script_ONA.xml |
|
OPS Ingersoll |
electrode_script_OPS_Ingersoll.xml |
|
Sodick |
electrode_script_Sodick.xml |
|
Zimmer & Kreim |
electrode_script_ZK.xml |
|
AGIE-Charmilles |
electrode_script_+GF_+Form_HMI.xml |
这些脚本位于以下目录中:
C:\Program Files\Autodesk\PowerShapexxxxx\file\electrode
如果需要,您可以通过删除适用的 .xml 文件来强制 PowerShape 使用 PowerShape 早期版本中的制造商脚本。如果删除制造商的 .xml 文件,您仍可以使用适用的 .con 文件编辑硬编码脚本中的大量设置。
以下示例演示了如何编辑标准的制造商脚本。相同的概念也适用于编辑自定义脚本。
编辑脚本的步骤:
在此示例中,定义了一个新的变量 EA,该变量的值通过替代串 %[angle_a] 指定。
如果替代串返回的值小于零,系统会将变量重新计算为其当前值加 360。这样可以确保角度为正值。
将文件保存到 shareddb 目录以确保在安装新版本的 PowerShape 时使用这些更改。