HyperWorks Desktop

Library_isDefault

Library_isDefault

Previous topic Next topic No expanding text in this topic  

Library_isDefault

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME


Library_isDefault

 

SYNTAX


Library_isDefault <library handle>

 

TYPE/CLASS


Library

 

DESCRIPTION


To check if the repository is default library

Library handle

àLibrary handle

 

Returns boolean value

1 à Is default library

0 à Is not a default library

 

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.2\hwe\organize\master\master.db}

set liblist [LibraryList]

DMDirector_GetLibraries $director $liblist username ""

set lib_handle [LibraryList_at $liblist 1]

set default_status [Library_isDefault $lib_handle]

 

 

ERRORS


 

SEE ALSO


LibraryList

new_DMDirector