Customization > Working with Soft Types and Global Attributes
Working with Soft Types and Global Attributes
Soft Types 
1. To add new icons when creating soft types on the source system, place the icons at the following path: <customizationRootDirectory>/<module>/src_web/<anySubfolder>.
2. Set the com.ptc.jca.customActionImageDir property in the <customizationRootDirectory>/configurations/xconf/custom.site.xconffile to point to the subfolder where new icons are added.
3. Create an export definitionfile for the required type to export the relevant layouts and icons. For more information, see Creating an Export Definition File.
4. Copy the load XML files to <customizationRootDirectory>/configurations/loadFiles/<customFolder>.
* 
It is recommended that all load files are located in the custom folder. For more information, see CCD Package Structure.
Ensure that the *_LoadSet.xml files are referenced correctly in the <customizationRootDirectory>/configurations/deploy.xml file.
Other than custom, ignore the image folders such as netmarkets, com, wtcore. It is assumed that the images are available out-of-the-box and the target system already contains them.
Any subtypes and attributes that exist in the target system, but not in the load file, will not get deleted by default. If you want to delete them, pass the arguments autoDeleteTypes and autoDeleteAttributes as true. The default values of these arguments are false.
* 
If you are already using the property com.ptc.jca.customActionImageDir, transfer all the images to the custom folder during the de-customization process.
Global Attributes 
Perform the following steps to load the global attributes:
1. Navigate to<WT_HOME>/loadFiles/csvmapfile.txt.
The contents of the file are given below. You can update the file as required.
#BeginAttributeHierarchyLoader,,,,,,,,,,
BeginAttributeHierarchyLoader,,,,,,,,,,
#AttrDefinizer,name,hierarchyDisplayName,organizerPaths,definitionPaths,display_name,description,data_type,QoMName,nameValuePairs,logicalIdentifier
AttrDefinizer,Classification,,,,,,org,,Classification,
AttrDefinizer,Attribue,,Classification,,,,org,,,
AttrDefinizer,<attribute name1>,,Classification/Attribue,,<attribute display name1>,,string,,,
AttrDefinizer,<attribute name2>,,Classification/Attribue,,<attribute display name2>,,string,,,
EndAttributeHierarchyLoader,,,,,,,,,,
2. Copy the CSV file to the following path: <customizationRootDirectory>/configurations/loadFiles/<customFolder>.
3. Run the following command from a Windchill Shell to convert the CSV file to XML:
windchill wt.load.util.CSV2XML -input XXX.csv
4. Copy the XML file to the following path: <customizationRootDirectory>/configurations/loadFiles/<customFolder>.
5. Add an entry of this load file in the configurations/loadFiles/custom/loadFileSet.xml file with the desired container. Ensure that an entry for this XML is added in configurations/deploy.xml if you want to load the global attributes that are not already loaded.
Deploy Customization on Development Environment
For information on the CCD process for deployment, see Deploy Your Customizations on Your Development Environment.
Prepare CCD Package for Promotion
For information on the CCD process for promotion, see Deploying Code and Configuration Package.
Was this helpful?