cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Add a "Delete Child Instances" option to command: wt.preference.ImportPreferences

Add a "Delete Child Instances" option to command: wt.preference.ImportPreferences

We are upgrading from Windchill 9.1 to 10.2.  As part of the upgrade process, we are running some commands to automatically load custom table views, preferences, etc.  In our case, there are some preferences I wish to load, lock at the context level, and delete child instances for good measure.

Below is an example of a portion of an XML file to load a preference with the command:  windchill wt.preference.ImportPreferences

  <PreferenceInstance>

    <name>/Display/ToolbarDescriptions</name>

    <containerClass>wt.inf.container.OrgContainer</containerClass>

    <containerName>Actuant</containerName>

    <organization>Actuant</organization>

    <clientName>WINDCHILL</clientName>

    <value>true</value>

    <locked>false</locked>

  </PreferenceInstance>

This might be a bad example, but there are other cases where we might desire to delete child instances when setting the preference.  This is available through the UI, but not through the command line.

This Product Idea is to allow functionality to "Delete Child Instances" via the command line, or via the XML file on a per-preference basis.

1 Comment
PTCModerator
Emeritus
Status changed to: Archived