XSIApplication.Workgroups

導入

v5.0

詳細

Softimage がアクティブに接続されているワークグループのリストを、パスのArrayとして戻します。

1. VBScript の例

'
' This example is suitable for running
' in batch mode, to check the current state
' of workgroups
'
aWorkgroups = Application.Workgroups
Application.LogMessage "-----Current Active Workgroups-----"
for i = 0 to ubound( aWorkgroups, 1 )
        Application.LogMessage aWorkgroups(i)
next

2. JScript の例

// This example prints out all the current workgroups
aWorkgroups = new VBArray( Application.Workgroups ) ;
cntWorkgroups = aWorkgroups.ubound( 1 ) + 1
for ( var i = 0 ; i < cntWorkgroups ; i++ )
{               
        var strWorkgroupPath = aWorkgroups.getItem( i ) ;
        LogMessage( strWorkgroupPath ) ; 
}

関連項目

XSIApplication.AddWorkgroup XSIApplication.RemoveWorkgroup XSIApplication.ActivateWorkgroup XSIApplication.RescanWorkgroups XSIApplication.InstallationPath