CreateWorkgroupDirectories

Introduced

5.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 <workgrouppath>/Application/toolbars directory, and all layouts must be in <workgrouppath>/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

CreateWorkgroupDirectories( WorkgroupPath )

Parameters

Parameter

Type

Description

WorkgroupPath

String

Path to the workgroup

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.

See Also

CreateAddonDirectories

XSIUtils.EnsureFolderExists

XSIApplication.Workgroups



Autodesk Softimage v7.5