Changing Views Assigned to Parts
As the site administrator, you can use the wt.vc.views.ReassignSingleViewCleanser command line utility to change existing views that are assigned to objects that implement ViewManageable. The objects affected include parts (type WTPart or subtype of WTPart) and product configurations (type WTProductConfiguration).
* 
To use this utility to change the view, all iterations for a given object must be assigned to the same view. The utility can not change views when the iterations of an object are assigned to different views. For example if revision A.1 is assigned to the Design view and another revision A.1 is assigned to the Manufacturing view, you cannot use this utility to change the view.
The view you specify must be a product structure view that has been established through the View Administration utility. For information about views, see About the View Administration Utility.
To obtain help instructions for this utility, enter the following command from a windchill shell:
java wt.vc.views.ReassignSingleViewCleanser -help
As an example, assume that parts have been created under the Demo organization context, where some parts are associated with the Design view and some parts are associated with the Manufacturing view.
To change the view association for all parts (and any other objects that implement ViewManageable) created under the Demo organization context that are using the Design view to use the Manufacturing view, complete the following steps:
1. Open a windchill shell on the method server.
2. Enter the following command:
java wt.vc.views.ReassignSingleViewCleanser -org Demo -update -sourceview Design
-targetview Manufacturing
3. Enter the user name and password for the site administer when prompted.
The utility returns information about the objects that were located, indicating whether the views were changed or not changed.
* 
The search is limited to a specific organization context by including the -org parameter.
To change objects with a null view to the Design view, use the following command:
java wt.vc.views.ReassignSingleViewCleanser -org Demo -update -targetview Design
To change objects with a Design view to the null view, use the following command:
java wt.vc.views.ReassignSingleViewCleanser -org Demo -update -sourceview Design
Было ли это полезно?