CreateWorkgroupDirectories
 
 
 

CreateWorkgroupDirectories

Introduced

v5.0

Description

A workgroup has the same directory structure as the local User path. Each file supported by Softimage must be put in the correct workgroup subdirectory to be correctly loaded. For example, all toolbars must be in the /Application/toolbars directory, and all layouts must be in /Application/layouts.

To make it easier to populate a workgroup with files, CreateWorkgroupDirectories creates the most common directories in a workgroup.

You can safely call CreateWorkgroupDirectories on an existing workgroup -- it creates any missing directories, but doesn't touch existing subdirectories.

Note: This command creates only the most common directories. For example, it does not attempt to create every possible Preset subdirectory.

Scripting Syntax

oString = CreateWorkgroupDirectories( WorkgroupPath );

Return Value

An empty String if successful, and an error message otherwise. Common causes of failure are invalid path arguments or insufficient permissions to create folders at the specified location.

Parameters

Parameter Type Description
WorkgroupPath String Path to the workgroup

See Also

CreateAddonDirectories XSIUtils.EnsureFolderExists XSIApplication.Workgroups