删除业务规则对象
可以使用 DeleteBusinessRuleObjects 命令行实用程序来删除现有业务规则对象。
要删除业务规则或业务规则集,请运行以下命令:
windchill wt.businessRules.DeleteBusinessRuleObjects “typeOfObjectToDelete:
key:containerPath”
要删除业务规则链接,需要同时指定业务规则集和业务规则:
windchill wt.businessRules.DeleteBusinessRuleObjects "typeOfObjectToDelete:
Key:containerPath:Key:containerPath"
自变量名称
说明
示例
typeOfObjectToDelete
要删除对象的类型
BusinessRuleBusinessRuleSet BusinessRuleLink
要删除对象的唯一键
CHECKOUT_RULE CHANGEABLE_PRE_RELEASE
containerPath
对象的上下文路径
/wt.inf.container.OrgContainer=PTC/wt.pdmlink.PDMLinkProduct=GOLF_CART
* 
由于上下文路径可能包含空格,所以要删除对象的自变量必须用引号括起。
如果将业务规则或业务规则集删除,则对象所关联到的任何链接也会删除。可以指定一个或多个对象,由空格分隔。
下表显示了删除业务规则对象的示例:
删除业务规则
windchill wt.businessRules.DeleteBusinessRuleObjects
"BusinessRule:keyToDelete:/wt.inf.container.OrgContainer=Org
Name/wt.pdmlink.PDMLinkProduct=Product Name"
删除两个业务规则集
windchill wt.businessRules.DeleteBusinessRuleObjects
"BusinessRuleSet:keyToDelete:/wt.inf.container.OrgContainer=
Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
"BusinessRuleSet:anotherKey:/wt.inf.container.OrgContainer=
Org Name/wt.pdmlink.PDMLinkProduct=Product Name"
删除业务规则链接
windchill wt.businessRules.DeleteBusinessRuleObjects
"BusinessRuleLink:businessRuleSetKey:/wt.inf.container.
OrgContainer=Org Name/wt.pdmlink.PDMLinkProduct=Product
Name:businessRuleKey:/wt.inf.container.OrgContainer=Org
Name/wt.pdmlink.PDMLinkProduct=Product Name"
这对您有帮助吗?