企業管理 > 零件建立公用程式 > Using the Part Creation Utility > Create XML Scripts
  
Create XML Scripts
The Windchill Part Creation utility uses XML scripts to selectively create WTParts for CAD and EPM Documents.
1. From the Windchill PDMLink Part Creation Tool window, perform Options 1 - 7 in sequential order.
* 
To properly use the utility, you MUST perform Options 1–7 in sequential order.
See View Reports for details on how to access and review an XML script report.
Windchill PDMLink Part Creation Tool

--------------------------------------------------

1. Search for CAD Documents to process.
2. Validate your objects, and see existing warnings.
3. Create new parts.
4. Create links WTPart->EPMDocument.
5. Build Part Structures.
6. Add Parts to Baselines.
7. Delete the temporary status table.
8. Exit

>>> Choose an option:
2. Begin by choosing Option 1, “Search for CAD Documents to process,” at the command line and press Enter. In this case, the window pertaining to Option 1 opens.
a. At the command line, create an XML script using the appropriate elements and tags for the option you selected.
b. On completion of the XML script, view the report for the XML script you just completed.
c. If there ARE errors in the report, resolve those errors before proceeding to the next Option in the list.
d. If there are NO errors in the report, proceed to the next step.
3. Choose Option 2, “Validate your objects and see existing warnings,” by entering 2 at the command line and pressing Enter.
a. At the command line, create an XML script using the appropriate elements and tags for the option you selected.
b. On completion of the XML script, view the report for the XML script you just completed.
c. If there ARE errors in the report, resolve those errors before proceeding to the next Option in the list.
d. If there are NO errors in the report, proceed to the next step.
4. Choose Option 3, “Create new parts,” by entering 3 at the command line and pressing Enter.
a. At the command line, create an XML script using the appropriate elements and tags for the option you selected.
b. On completion of the XML script, view the report for the XML script you just completed.
c. If there ARE errors in the report, resolve those errors before proceeding to the next Option in the list.
d. If there are NO errors in the report, proceed to the next step.
5. Choose Option 4, “Create links WTPart->EPMDocument,” by entering 4 at the command line and pressing Enter.
a. At the command line, create an XML script using the appropriate elements and tags for the option you selected.
b. On completion of the XML script, view the report for the XML script you just completed.
c. If there ARE errors in the report, resolve those errors before proceeding to the next Option in the list.
d. If there are NO errors in the report, proceed to the next step.
6. Choose Option 5, “Build part structures,” by entering 5 at the command line and pressing Enter.
a. At the command line, create an XML script using the appropriate elements and tags for the option you selected.
b. On completion of the XML script, view the report for the XML script you just completed.
c. If there ARE errors in the report, resolve those errors before proceeding to the next Option in the list.
d. If there are NO errors in the report, proceed to the next step.
7. Choose Option 6, “Add parts to baselines,” by entering 6 at the command line and pressing Enter.
a. At the command line, create an XML script using the appropriate elements and tags for the option you selected.
b. On completion of the XML script, view the report for the XML script you just completed.
c. If there ARE errors in the report, resolve those errors before proceeding to the next Option in the list.
d. If there are NO errors in the report, proceed to the next step.
8. Choose Option 7, “Delete the temporary status table,” by entering 7 at the command line and pressing Enter.