View.EndEdit
 
 
 

View.EndEdit

Description

Requests an end to an edit operation on this View. This method updates the view with the attribute changes performed so far. This has no effect if the view is not in edit mode.

C# Syntax

View.EndEdit();

Scripting Syntax

View.EndEdit();

Examples

Python Example

#
#       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()

See Also

View.BeginEdit