CreateViewFromDefinitionFile (Layout)

Introduced

5.0

Description

Creates a new View object given the path to its definition on disk. This method is a low-level approach to dealing with Views, in most cases Layout.CreateView is the most convenient way to create floating views.

This method will load any valid view file, even if the file is outside of the normal search locations inside the user, factory and workgroups directories. It will fail if there is an XML syntax error or other problem with the content of the view definition.

Scripting Syntax

Layout.CreateViewFromDefinitionFile( ViewPath, ViewName )

C# Syntax

View Layout.CreateViewFromDefinitionFile( String in_pViewPath, String in_pViewName );

Parameters

Parameter

Type

Description

ViewPath

String

Complete path to a .xsitb or .xsivw file on disk.

ViewName

String

Required string providing the name of the view.

Important: Blank characters found in the view name, such as space and tabs, are converted to underscores ("_").

Return Value

View

See Also

Layout.CreateView



Autodesk Softimage v7.5