v4.2
Returns a SimulationEnvironmentCollection containing the SimulationEnvironment objects associated with the scene. This list contains all simulation environments under the Environments container ("Scene.Environments").
// get accessor SimulationEnvironmentCollection rtn = Scene.SimulationEnvironments; |
# # 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 |