取消TC数据的发布状态

release_man

Releases objects in batch mode without creating workflow processes or audit files.

Syntax

release_man [-u=user-ID {-p=password | -pf=password-file} -g=dba] [-spec] [-unrelease] -retain_release_date [-status=status-type] -folder=folder-name [-dataset=dataset] [item=item-ID| -key=[keyAttr1=keyVal1] [,keyAttr2=keyVal2]…[,keyAttrN=keyValN]] [-rev=revision-ID] [-relation=relation] [-datasetName=dataset-name] [-datasetType=dataset-type] [-force] [-h]

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

Files

Restrictions

  1. The user must be a member of the dba group.

  2. The status type must be a valid status type defined for your site.

  3. The release folder must be a single folder directly inside the executing user's workspace Home folder.

  4. The release_man utility does not release invalid objects or objects locked by other processes.

  5. 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
posted @   张永全-PLM顾问  阅读(344)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示