Skip to main content
1-Visitor
November 17, 2021
Question

How to delete all options temporarily imported to current session from a config.pro file?

  • November 17, 2021
  • 2 replies
  • 3552 views

I usually work with multiple projects at a time.

Normally, I would close a project and then open a new one. With each project, one config.pro file saved in working directory is loaded into the session.

 

I was thinking about "unloading" the options from a project, then change working directory and load/import the options in the new config.pro file (which is saved in the new working directory) when I need to work on another project. If it is possible to do so, I can work with multiple projects without having to close Creo and open it again. However, I could not find anyway to "unload" config options from a config file.

 

I understand that if I load a new config file into current session, options from the previous config file will be overwritten. However, there are many things I want to delete but will not be overwritten, for example mapkeys or search paths.

 

Could you please tell me whether there is a way to do that? Thank you in advance!

2 replies

23-Emerald III
November 17, 2021

No. It's not the answer you want to hear. There is no "unload" ability.

Basically the "toggle" options can be changed "in session" by loading a new config.pro file but the "system" options are set when opening Creo and can't be changed "in session".

 

**My terminology "toggle options" and "system options" are just something I made up and not a real thing for anyone else**😀

Hidetaka1-VisitorAuthor
1-Visitor
November 17, 2021

Thank you for the reply.

 

If there is no "unload" option, is there a method to quickly delete all search paths in session?

 

Actually I can use ahk script to import only search paths from a config.pro file and ignore all other options, mapkeys, etc. So, if there is a quick way to delete all search paths in current session (or in a specific .pro file imported to the session), it would be ok.  

23-Emerald III
November 17, 2021

As far as I know, you can only add search paths during a session. You can not remove a search path once it has been added.

 

 

 

kdirth
21-Topaz I
21-Topaz I
November 17, 2021

The only method I can think of is to add all of the config settings and map keys, that you are concerned about, to each config file so that they are set to what you need.  Map keys would need to be written to do nothing to, in effect, delete them.

There is always more to learn.
Hidetaka1-VisitorAuthor
1-Visitor
November 17, 2021

Thank you for the reply.

It would work with options with single value, but for search paths, if I import other file the search path will just accumulate. That will cause problems because sometimes we have different parts with same name (very very rare, but sometimes it happens). For mapkeys, if the project is first created by someone other than me, I won't know the mapkeys they defined and so can not delete them by defining mapkeys with same name and do nothing.