取消TC数据的发布状态
release_man
Releases objects in batch mode without creating workflow processes or audit files.
Syntax
Arguments
- -u
-
Specifies the user ID.
- -p
-
Specifies the user's password.
This argument is mutually exclusive with the -pf argument.
- -pf
-
Specifies the password file.
For more information about managing password files, see Manage password files.
This argument is mutually exclusive with the -p argument.
- -g
-
Specifies the group. Must be the dba group.
See restriction #1.
- -spec
-
Indicates that specifications and BOM view revisions of an item revision in the release folder are released along with the item revision.
- -unrelease
-
Removes the specified status type. See restrictions #2 and #5.
- -retain_release_date
-
Specifies that if the object to be released is already released, the original release date is retained. See restriction #5.
- -status
-
Specifies the status type to be applied to all objects.
See restriction #2.
- -folder
-
Specifies the name of the release folder. Place the objects whose status you want changed into the release folder. See restriction #3.
Status is changed only on the objects one level down within the folder. For example, if you place an item in the folder that contains multiple item revisions, and these item revisions contain multiple datasets, only the status of the item is changed. The status of the item revisions and their datasets is not changed. To change the status of the item revisions, each item revision must be individually placed in the folder at the same level as the item.
Use the -spec argument to change the status of specifications and BOM view revisions of item revisions.
- -dataset
-
Specifies that a dataset is released.
- -item
-
Specifies the item ID of the dataset to be released. Use with the -dataset argument.
- -key
-
Specifies the key of the dataset to be released. Use with the -dataset argument.
Use the following format:
[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]
To find the key of an object, use the get_key_string utility.
For more information, see Introduction to multifield keys in Configure your business data model in BMIDE.
- -rev
-
Specifies the revision ID of the dataset to be released. Use with the -dataset argument.
- -relation
-
Specifies the relation of the dataset to be released. Use with the -dataset argument.
- -datasetName
-
Specifies the name of the dataset to be released. Use with the -dataset argument.
- -datasetType
-
Specifies the type of dataset to be released. Use with the -dataset argument.
- -force
-
Forces the specified release status to be unreleased, even if there is no release type associated with the status. Must be used with the -unrelease argument.
- -h
-
Displays help for this utility.
Environment
As specified in Manually configure the Teamcenter environment.
Files
As specified in Log files produced by Teamcenter.
Restrictions
-
The user must be a member of the dba group.
-
The status type must be a valid status type defined for your site.
-
The release folder must be a single folder directly inside the executing user's workspace Home folder.
-
The release_man utility does not release invalid objects or objects locked by other processes.
-
The -retain_release_date and -unrelease arguments cannot to be used together.
Examples
-
To apply the Released status type to all objects in the my_folder folder (including ItemRevision specifications and BOM view revisions), enter the following command on a single line:
-
添加状态 $TC_ROOT/bin/release_man -u=user-id -p=password -g=dba -spec -status=Released -folder=my_folder
-
To remove the Released status type from all objects in the my_folder folder (including ItemRevision specifications and BOM view revisions), enter the following command on a single line:
移除状态:1.运行TC命令行:
2.将文件发到home下的文件夹内
- 3.用dba运行命令
-
release_man -u=infodba -p=infodba -g=dba -spec -unrelease -status=具体的状态 -folder=unrelease
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)