How to Bulk Load Templates
The following are required prior to bulk-loading templates:
-
All template files must be in the same local folder location. Templates can be located in subfolders, but each folder will need to be loaded.
Note: The standard Windchill filepath character length limitation apply.
-
Templates in the local folders must have a
.xml
extension. -
Burst rules for each template’s doctype must already exist in Windchill, otherwise the default burst rule will be used. (e.g., bookmap, map, ditabase, etc.).
This describes how to bulk load Web Editor templates using Arbortext Editor.
Utilize the following steps to bulk load templates.
- Connect to Windchill from Arbortext Editor as a user who has read/write permissions on the Windchill templates folder.
- Connect to the Windchill instance using Object | Connect..
- Clean the Workspace using Object | Clean Workspace located within the Object Browser. Any Workspace can be used, but it is best practice to clean the Workspace prior to bursting.
- Using the Object Browser, navigate to the folder location in Windchill where you would like the template files to be burst and click Use Selection to select the desired folder.
-
In the Arbortext Editor Command line, paste the following
save_as_windchill_template_source()
command replacing the<localfolder>
with the local folder path containing the templates. Make sure to use \\ as the file path separator.burst_multiple("<localfolder>\\*.xml","<localfolder>\\results.txt",0x1000)
-
Click Enter to begin the import
process. A
results.txt
file is automatically generated in the folder where the templates reside locally, containing a log of what was burst into Windchill. - Repeat the previous steps for each Windchill folder that need to be loaded.