#
# This example demonstrates hot to set view attributes in batch with
# BeginEdit and EndEdit.
#
Application.NewScene( "", 0 )
app = Application
root = app.ActiveSceneRoot
mynull = root.AddNull()
root.AddGeometry( "Cone", "MeshSurface" )
app.Selection.Add( mynull )
subv = app.Desktop.ActiveLayout.CreateView2( "Explorer", "myview" )
subv.BeginEdit()
subv.SetAttributeValue( "allownodeexpansion", "false" )
subv.SetAttributeValue( "scope", "Selection" )
subv.SetAttributeValue( "scriptnames", "true" )
subv.EndEdit()
|