Tutorial > Creo Schematics 4.0 Basic Tutorial > Interfacing with Creo Parametric > Setting up Parameters for Cabling Design
  
Setting up Parameters for Cabling Design
When you export a design sheet using XML to either Piping or Cabling, you can check the property values of the shapes before you export them. When you export Creo Schematics designs as XML to Piping or Cabling, the system automatically checks for mandatory and recommended properties.
1. Click File > Export and choose XML.
2. In the Export to XML dialog box, set Target Application to Cabling.
3. From the What to Export group, choose Current sheet.
4. From the Validate export group, select the Duplicate Ref Des and Ignore warnings check boxes.
5. Click Validate XML. The XML Validation Report dialog box opens.
6. In the XML Validation Report dialog box review the violations.
7. The entry_port parameter is missing or has not been set on the ports.
8. The model_name parameter is missing or has not been set on the components.
9. The obj_type parameter has not been defined on the components.
10. The fibers have not had a dataset applied.
11. Close the XML Validation Report dialog box.
12. Click Cancel to close the Export to XML dialog box.
13. Double-click on the Lamp to open the Embedded Parameters panel.
14. Press CTRL and select the remaining 3 connectors and Control Module.
15. In the embedded parameters panel, select the Port Parameters tab.
Notice that only some of the ports have the parameter entry_port and none of them have the parameter def_grouping.
16. In the entry_port column select the first entry.
17. Press and hold SHIFT and click to select the last entry in the column to select the entries in the entry_port column.
18. In the embedded parameters panel click to add a new parameter.
19. In the Parameter selector dialog box, select entry_port and click Apply.
20. Select def_grouping and click OK. The Parameter Selector dialog box closes. The entry_port and def_grouping parameters have been added to all the selected ports.
21. In the entry_port column, select the first entry.
22. Press and hold SHIFT and click to select the last entry in the column. All entries in the entry_port column are selected.
23. Click to modify selected parameter.
24. In the entry_port Modify Parameter dialog box, edit the value to be entry and select OK.
25. In the graphics area, select the four fibers connecting the lamp, control module and connector.
26. In the embedded parameters panel select the first entry in the full_name column, and drag the cursor to the last entry. All the entries in the column should now be selected.
27. Click to apply a dataset to selected items.
28. In the Dataset Selector dialog box, choose a desired spool and select OK.
29. In the graphics area select the cable decoration using the General selection tool .
30. In the embedded parameters panel, select a cell in the Cable or Pipe Parameters tab.
31. Click to apply a dataset to selected items.
32. In the Dataset Selector dialog box, select a desired spool and click OK to close the Dataset Selector dialog box.
33. Click File > Export and choose XML.
34. In the Export to XML dialog box, click Validate XML.
35. Notice in the XML Validation Report report window the number of violations has decreased but the components still do not have the model_name and obj_type parameter set.
36. Click Close.
37. Click Cancel to close the Export to XML dialog box.
38. Select all the objects on the design sheet.
39. In the Embedded Parameters panel, select the Component Parameters tab, and select all LH connector entries.
40. Click to add a new parameter.
41. In the Parameter Selector dialog box, select obj_type.
42. Choose Connector in the Value box and click Apply.
43. Select model_name and click OK.
44. Double click the model_name cell for the first connector and edit the name to conn1.
45. Double click the model_name cell for the second connector and edit the name to conn2.
46. Double click the model_name cell for the third connector and edit the name to conn3.
47. Double click the model_name cell for the control module and edit the name to module.
48. Double click the model_name cell for the light and edit the name to light.
49. Select a cell for both the module and lamp and click to add a new parameter.
50. In the Parameters Selector dialog box, select obj_type.
51. Choose Component in the Value box and click OK.
52. Click File > Export and choose XML.
53. In the Export to XML dialog box, click Validate XML.
Notice, there are not any violations.
54. Enter a name for the XML file and click OK to complete the export.