技术文章 - CS334913
如何使用 Windchill Rest Services (WRS) 的自定义查询选项“ptc.search.latestversion”来检索 ThingWorx Platform 中 WTPart/WTDocument 的最新版本?
已修改: 07-May-2026
适用于
- ThingWorx Platform 8.3 to 9.7
- Windchill Navigate (formerly ThingWorx Navigate) 9.0 to 10.0
- Windchill PDMLink 12.0 to 13.1
说明
- Windchill WRS 提供了一个直接检索最新WTPart/WTDocument修订版和版本的功能,该功能在 Windchill WRS 帮助链接中有详细描述: 检索实体的最新版本
- 客户使用相同的选项ptc.search.latestversion来自定义端点,但 ThingWorx 无法识别该端点。
- ThingWorx 抛出“
The system query object $additionalQuery is not defined”错误。
- ThingWorx 抛出“
- 将映射的 API 保存为服务时, ThingWorx Composer UI 中始终报告名称无效,应用程序日志也报告错误:
[L: ERROR] [O: c.t.w.Things] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-443-exec-30] Import Failed: Invalid Name: [ptc.search.latestversion] - Prohibited Character in Name
- 其他相关端点(例如/v4/ProdMgmt/Parts )将返回所有最新版本(例如 A.3/B.4/C.5),但不会仅返回最新修订版本。
- 如何仅从 Windchill 获取最新版本的WTPart/WTDocument并在 Thingworx 中渲染
- 如何使用 WRS 以容器和文件夹为输入参数,通过筛选获取WTDocument的最新版本
这是文章 334913 的 PDF 版本,可能已过期。最新版本 CS334913