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

Creo View User Preference - Setting up Path for Cache Folder Location

SOLVED
Highlighted
Level 11

Creo View User Preference - Setting up Path for Cache Folder Location

Ok...so I'm tyring to modify the XML file for user preferences so I can distribute to other user's and have their cache set up and enabled.  What is the line of text I need for the value of cache_location?  I've tried about 10 different variants without any luck.  

location-cache-folder-user-prefs.JPG

I'm trying to go here...

location-cache-folder-user-prefs-a.JPG

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Thanks Martin and my friends at Leyland for helping out...the work around I found was to leave the value for cache location unset as shown below.  With Cache enabled, the file path gets generated on Launch of Creo View and saved into the XML file upon exit.   More testing would need to be done for this be set on the server_prefs.xml or admin_prefs.xml per CS32479, but for me to hand it off as a user_prefs.xml file this will be sufficient.

Initial Settings as shown below in user_pref.xml file

location-cache-folder-user-prefs-b.JPG

After user launches and exits, the XML file gets updated as shown below.

location-cache-folder-user-prefs-c.JPG

12 REPLIES

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Hi,

some notes ...

1.]

\%USERPROFILE%\AppData\Local\ ... you have to remove first backslash, its presence doesn't make any sense

2.]

I didn't find any information describing format of user_prefs.xml file. Therefore I don't know, whether variables are allowed inside it. You can ask PTC Support.

3.]

In config.pro, variable notation (Unix like) is ... $USERPROFILE ... you can try this notation in user_prefs.xml file

4.]

If user_prefs.xml file distribution is performed when user launches Creo View, then you can include a script into Creo View startup sequence and replace variable in user_prefs.xml file by its real value.

MH


Martin Hanák

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Thanks Martin and my friends at Leyland for helping out...the work around I found was to leave the value for cache location unset as shown below.  With Cache enabled, the file path gets generated on Launch of Creo View and saved into the XML file upon exit.   More testing would need to be done for this be set on the server_prefs.xml or admin_prefs.xml per CS32479, but for me to hand it off as a user_prefs.xml file this will be sufficient.

Initial Settings as shown below in user_pref.xml file

location-cache-folder-user-prefs-b.JPG

After user launches and exits, the XML file gets updated as shown below.

location-cache-folder-user-prefs-c.JPG

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Here is the server side context level preference setting in the XML file for reference that we use.  I chose to lock it to ensure it gets pushed out for our development contexts. 

 

<!--Comment - Setting enables cache on the client machine to store locally the Creo View graphics files stored in Windchill-->
<!--Comment - Note: This Setting provides significant performance benefits for users when they load the same content.  May need to consider a future process to clean the client cache-->
    <category
      name="LocalCache">
      <preference
        name="enable_cache"
        value="True" locked="true"/>
    </category>

Re: Creo View User Preference - Setting up Path for Cache Folder Location

The disatvantage of enabling enable_cache = true and leaving cache_location unset in the server_prefs.xml, is that the user is prompted to apply or diesable changes made, the next time he enters the configuration menue in the GUI.

And setting the cache_location via valiables like %APPDATA% or $APPDATA do not work / are not supported.

So it looks like one should write an enhancement request for this issue.

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Do you have a picture of the prompt you are referring to?  We've been using this server preference for quite a while know and haven't seen or heard of any complaints from users.  We are in Creo view 3.1 still...maybe this prompt is in newer build?

Re: Creo View User Preference - Setting up Path for Cache Folder Location

I just posted an enhancement request, to support the cache_location in the server_prefs.xml.

Please support Idea: 579454

 

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Here are the three option you my set in the server_prefs.xml.

See attached pictures. All Tested with Creo View Light 5.0

Re: Creo View User Preference - Setting up Path for Cache Folder Location

I'm sure we will see it if it exists in Creo View 5.  I've been hesitant to even go to Creo View 5 after I tested it because the custom ribbon that I spent a week developing didn't carry into Creo View 5. Smiley Sad  We have a custom ribbon and preferences pushed out to users. 

 

BTW, your picture showing the issue has the preference set...not unset as you stated above. 

Re: Creo View User Preference - Setting up Path for Cache Folder Location

Which picture do you mean?

  • cache_location_not_set.jpg: enables the cache, but disables the cache_location => Window pop's up
    the cache_location is commented out (XML syntax <!-- some text --> )