Scene.SimulationEnvironments

導入

v4.2

詳細

シーンに関連付けれらているSimulationEnvironmentオブジェクトを含むSimulationEnvironmentCollectionを戻します。このリストには、Environmentsコンテナ("Scene.Environments")の下のすべてのシミュレート環境が含まれます。

Python の例

#
# This example demonstrates how to create and access simulation environments
#
Application.NewScene( "", 0 )
# First create some new environments
Application.CreateEnvironment( "TestEnvironment1" )
Application.CreateEnvironment( "TestEnvironment2" )
Application.CreateEnvironment( "TestEnvironment3" )
oEnvironments = Application.ActiveProject.ActiveScene.SimulationEnvironments
for env in oEnvironments :
        Application.LogMessage( env.Name )
# Expected result:
#INFO : TestEnvironment1
#INFO : TestEnvironment2
#INFO : TestEnvironment3

関連項目

Scene.ActiveSimulationEnvironment SimulationEnvironment SimulationEnvironmentCollection CreateEnvironment CreateEnvironmentCache MergeSimulationEnvironments SetCurrentEnvironment