new_WorkSpace

Creates a new workspace handle at the specified path under the specified username.

Syntax

new_WorkSpace <Workspace Name> <Path> <username>

Type/Class

Workspace

Description

Creates a new workspace handle at the specified path under the specified username.
Note: Just executing this command will not create a new workspace. The workspace has to be opened using DMDirector_OpenWorkspace.
WorkSpace Name
Name of the workspace
Path
Path where you want to create a new workspace

Examples

set altairHome [file dirname $::env(ALTAIR_LIB_MGR_PATH)] 
set fileDefaultSettings [file join "$altairHome" hw tcl hweDataMgr librarymanager.xml]
set settings [CreateDefaultSettings "$fileDefaultSettings"]
set director [new_DMDirector $settings {C:\Documents and Settings\username\.Altair\11.1\hwe\organize\master\master.db}]
set repos [RepositoryList]
DMDirector_GetRepositories $director $repos username ""
set wslist [WorkSpaceList]
set repoh [RepositoryList_at $repos 1]
DMDirector_GetWorkspaces $director $wslist username
set newws [new_WorkSpace “MyWS” {C:\temp} username]
set gdm [DMDirector_OpenWorkspace $director $newws $repoh 1]