DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix path settings (General Settings)

Hello
 
In General Settings -> Path settings I defined the "SCRIPT user path" which I use for calls from a custom menu in DIAdem 10.
But after loading / open a script from a different directory this path settings changes!
This means the calls from my custom menu don't work anymore.
Is there a solution for this?
 
James Code
0 Kudos
Message 1 of 5
(3,353 Views)
Hello James!
 
The only way I know is to set the library path to your script path. The setting is stored in the DDD and will be restored on startup and not changed by any action. If this doesnt work for you you can use a Windows environment variable and get this with the GetEnv command in you custom menu call.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 5
(3,345 Views)

Hello Matthias

Thank you for your answer.

The libary path I tried with no success. The calls like the one below do not work:

  Call MenuItemInsert(Window, cstr(MenuItemCount)&".3", "MENUITEM", "Experiment", "Call ExtProgram(AutoDrvUser + ""MyExtApp.exe"",""ExperimentClass"")")

Windows environment variable would work, but makes deployment not that easy.
Maybe I have to write my own settings file ... is there a preferred way to do this?

James Code

0 Kudos
Message 3 of 5
(3,328 Views)
Hello James!
 
Please change 'AutoDrvUser' to 'AutoDrvLibr' in your definition.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 4 of 5
(3,326 Views)

Hi Matthias!

Excellent! works perfect. Thank you.

James Code

0 Kudos
Message 5 of 5
(3,321 Views)