Jump to content

Change the Template folder


---
 Share

Recommended Posts

Is there a way to change the project template folder in a script? I need an alternate location for certain instances.

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

there is no function for this.

As a workaround, you could use the public folder in ZEISS INSPECT.

You can use gom.script.sys.set_public_folder() to change the public folder from a script.

sys.set_public_folder (set public directory) - set public directory
 
Parameters:
 
Name      | Description                         | Type                  | Optional
----------------------------------------------------------------------------------
directory | specifies the path to the directory | Tom::Parse::Directory | No      
migration | decide whether to migrate or not    | bool                  | Yes

 

However, this will apply to everything inside the folder, not just templates.

Notes:

  • gom.script.sys.set_public_folder() will take effect in the current ZEISS INSPECT instance immediately.
  • The public folder for other ZEISS INSPECT instances will be changed only after closing the instance which modified it.

Best regards,

Matthias

Edited
Link to comment
Share on other sites

 Share

×
×
  • Create New...