先决条件
以下是在 ThingWorx 中配置 Windchill Digital Product Traceability (DPT) Extension 所需的先决条件:
启用 ThingWorx 以允许导入 Windchill 扩展
必须启用 ThingWorx,以允许导入 Windchill Extension。
默认情况下,禁止所有用户在
ThingWorx 中导入扩展。要启用导入,请配置
platform-settings.json 文件。有关详情,请参阅
ThingWorx Platform 帮助中心的
plateform-settings.json 配置详情。
1. 打开 platform-settings.json 文件。默认情况下,该文件位于 ThingworxPlatform 文件夹中。
2. 确保在 platform-settings.json 文件中添加以下 ExtensionPackageImportPolicy 参数,并将这些参数的值设置为 true。此设置允许导入扩展。
"ExtensionPackageImportPolicy": {
"importEnabled": true,
"allowJarResources": true,
"allowJavascriptResources": true,
"allowCSSResources": true,
"allowJSONResources": true,
"allowWebAppResources": true,
"allowEntities": true,
"allowExtensibleEntities": true
},
|
|
默认情况下,所有 ExtensionPackageImportPolicy 参数均设置为 false。建议在成功导入后,将这些参数的值从 true 更改为 false。
|
3. 保存并关闭 platform-settings.json 文件。
允许在 ThingWorx 中添加 Windchill
必须将
Windchill 添加到
ThingWorx 的允许列表中。有关详情,请参阅
ThingWorx Platform 帮助中心的“允许在 iFrame 中嵌入的混搭”。
|
|
有关受支持 ThingWorx 应用程序版本的说明,请参阅相应文档。
|
将 Windchill 添加为安全域
必须将
Windchill 添加到
ThingWorx 的“允许列表”中。有关详情,请参阅
ThingWorx Platform 帮助中心的“允许在 iFrame 中嵌入的混搭”。
请执行以下步骤:
1. 确保在
ThingWorx 中将
EnableContentSecurityPolicyFilter property 设置为
true。有关详情,请参阅
ThingWorx Platform 帮助中心的“platform-settings.json 配置详情”和“内容安全策略”。
2. 在 ThingWorx Platform 中,导航至 > > > 。
3. 选择 frame-ancestors 指令,打开指令编辑窗口。
4. 在“允许”字段中,添加 Windchill URL。要指定多个 Windchill URL,以空格分隔列表的形式输入它们。
5. 选择 frame-src 指令,打开指令编辑窗口。
6. 在“允许”字段中,添加相同的 Windchill URL。要指定多个 Windchill URL,以空格分隔列表的形式输入它们。
7. 单击相应的勾选标记,保存变更。
|
|
有关受支持 ThingWorx 应用程序版本的说明,请参阅相应文档。
|
下载 Windchill_Digital_Product_Traceability_Bundle zip 文件
确保从 PTC.com 的
PTC 软件下载页面下载
Windchill_Digital_Product_Traceability_Bundle zip 文件。该 zip 文件可以在
Windchill PDMLink 产品系列下找到,具体内容包括:
1. Windchill_Digital_Product_Traceability-extension - Windchill DPT 扩展压缩文件。
2. Windchill_Digital_Product_Traceability_Config_Things - 示例事物 XML 文件的压缩文件。
|
|
如果在浏览器中收到证书错误,请使用由受信任的证书颁发机构 (CA) 颁发和验证的标准 SSL 证书。如果您具有自签名证书,请在浏览器中将自签名证书作为受信任证书导入。
|
有关
ThingWorx 用户配置文件所需权限的信息,请参阅
ThingWorx Platform 实体的权限。