问题描述
后台如何生成基于release时间及Item type的数据报告。
解决方案
Teamcenter 提供了一个实用工具:find_released_item_rev
官方释义:
Allows you to create a query based on date and object type. The query is performed on the Teamcenter database and generates the released item revision list to identify released item revisions. Use a date before the earliest assembly was created to ensure a listing of all released items.
注意,需要在Teamcenter Utility环境下运行该命令,快速启动运行Teamcenter Utility环境
语法:
find_released_item_rev [-u=user-id {-p=password | -pf=password-file} -g=group]
-start_date=DD-MMM-YYYY HH:MM:SS -end_date=DD-MMM-YYYY HH:MM:SS -obj_type=object-type [-out_file=output-filename | -outItemRevKeyFile=output-filename] -h
使用实例:
$TC_ROOT/bin/find_released_item_rev -start_date="01-Jan-2024 00:00:00"
-out_file=released_items.txt