/*
This example demonstrates hot to set view attributes in batch with
BeginEdit and EndEdit.
*/
NewScene( null, false );
var mynull = Application.ActiveSceneRoot.AddNull();
Application.ActiveSceneRoot.AddGeometry( "Cone", "MeshSurface" );
Selection.Add( mynull );
var subv = Desktop.ActiveLayout.CreateView( "Explorer", "myview" );
subv.BeginEdit();
subv.SetAttributeValue( "allownodeexpansion", "false" );
subv.SetAttributeValue( "scope", "Selection" );
subv.SetAttributeValue( "scriptnames", "true" );
subv.EndEdit(); |