Manufacturing utilities
cc_writer
Creates a PLM XML cache file for a process structure contained in a specified collaboration context object. The PLM XML cache file can be then loaded to Teamcenter lifecycle visualization mockup from within Teamcenter. Syntax cc_writer -cc_name=cc-name | -cc_uid=uid -sc_name= structure-context-name | -sc_type=structure-context-type -output_file=file [-ua=pref:preferenceName,target:targetName1,key:keyName1,prop:propName1 ,...,target:targetNameN,key:keyNameN,prop:propNameN] [-h] Arguments -cc_name Specifies the name of the collaboration context object. Either this argument or the -cc_uid argument must be specified. Note The collaboration context name is not assumed to be unique. If more than one object is found, the utility returns an error message. -cc_uid Specifies the UID of the collaboration context object in Teamcenter. This argument is used in place of the -cc_name argument in situations where identifying the collaboration context object by name only is not sufficient because the collaboration context name is not unique in Teamcenter. A query must be defined to obtain the UID of a given collaboration context object. -sc_name Specifies the name of the structure context to export. This argument is optional. By default, the composition in the collaboration context object is exported. This argument is used only to export non-composition structure context. -sc_type Specifies the type of structure context to export, for example, MEProcessContext. This argument is optional. -output_file Specifies the name of the file to be created and associated with the dataset. The file is created in the current folder if a path is not specified or in the target directory if a path is specified. -ua Defines user attributes. The syntax is similar to the bomwriter -ua option. pref:preference-name-used-for-this-utility For example, pref: CC_ExtraPLMXMLInstanceAttributes picks the value of “CC_ExtraPLMXMLInstanceAttributes” as the user attribute. target:the-element-in-the-PLM XML-under-which-the- property-is-added Valid values are Part and Occurrence. If Part, the property is added to ProductRevisionView. If Occurrence, the property is added to Occurrence. key:name-of-property-in-PLM XML-file prop:name-of-the-property-in-Teamcenter -h Displays help for this utility. Restrictions None. Examples To create the cc_process_cache.plmxml PLM XML file for the process structure found in the structure context of the cc_process_cache collaboration context object, enter the following command on a single line: Copy cc_writer -u=Tc-admin-user -p=password -g=group -cc_name=cc_process_cache -sc_type= MEProcessContext -output_file=cc_process_cache.plmxml -ua=target:Part, key:Description,prop:bl_item_object_desc, target:Occurrence, key:FNA, prop:Usage_FNA The PLM XML file contains additional attributes exported as user data. The Description attribute is added to the product revision element and the FNA attribute is added to the occurrence element. Those attributes can then be presented with their values in Teamcenter lifecycle visualization mockup. To create the va_test.xml PLM XML file for the process structure found in the structure context process of the collaboration context object va_test, enter the following command on a single line: Copy cc_writer -u=Tc-admin-user -p=password -g=group -cc_name=va_test -output_file=va_test.xml -ua=pref:CC_ExtraPLMXMLInstanceAttributes, target:Occurrence, key:test_name, prop:CompoundName The PLM XML file contains additional attributes exported as user data. The user attribute is the combination of what is specified in the CC_ExtraPLMXMLInstanceAttributes preference and the target:Occurrence,key:test_name,prop:CompoundName attributes. Those attributes can then be presented with their values in Teamcenter lifecycle visualization mockup. Related Topics Multi-Structure Management
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/gvl1737253698140/cc_writer.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)