View.BeginEdit
 
 
 

View.BeginEdit

Description

Puts the view in edit mode. The edit mode allows you to change several view attributes in bulk without affecting the current UI. Call the View.EndEdit method to quit the edit mode.

C# Syntax

View.BeginEdit();

Scripting Syntax

View.BeginEdit();

Examples

JScript Example

/*
        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();

See Also

View.EndEdit