SaveCurrentViewAsModelView Method (IViewManager)

SaveCurrentViewAsModelView Method (IViewManager) | Send Feedback
See Also Example

Result[out]
  Result status as defined in dsCreateObjectResult_e

Name[out]
  Name of model named view

Class
  Name of category to which to assign this model named view

NamedView[out]
  IModelNamedView

Saves the current model view with the specified name and category.

# Syntax

Visual Basic |
--- | ---
    Function SaveCurrentViewAsModelView( _
       ByVal Name As System.String, _
       ByVal Class As System.String, _
       ByRef NamedView As ModelNamedView _
    ) As dsCreateObjectResult_e

C# |
--- | ---
    dsCreateObjectResult_e SaveCurrentViewAsModelView(
       System.string Name,
       System.string Class,
       out ModelNamedView NamedView
    )

JavaScript |
--- | ---
    SaveCurrentViewAsModelView(
       Name : String,
       Class : String
    ) : {
       NamedView : dsModelNamedView,
       Result : String
    }

COM native C++ |
--- | ---
    HRESULT SaveCurrentViewAsModelView(
       BSTR Name,
       BSTR Class,
       IModelNamedView** NamedView,
       dsCreateObjectResult_e* Result
    )

C++ |
--- | ---
    DSRESULT SaveCurrentViewAsModelView(
       const dsString& Name,
       const dsString& Class,
       dsModelNamedView** NamedView,
       dsCreateObjectResult_e* Result
    )

#### Parameters

Name[out]
  Name of model named view
Class
  Name of category to which to assign this model named view
NamedView[out]
  IModelNamedView
Result[out] or Return Value
  Result status as defined in dsCreateObjectResult_e

# Example

Create Model and Sheet Views (JavaScript)
Create Model and Sheet Views (VB.NET)
Create Model and Sheet Views (C#)
Create Model and Sheet Views (VBA)

# See Also

####

IViewManager Interface
IViewManager Members
IViewManager::ActivateModelView Method
IViewManager::CreateModelNamedView Method
IViewManager::GetModelNamedView Method
IViewManager::GetModelNamedViewList Method
IViewManager::RemoveModelNamedView Method ()

# Availability

DraftSight V1R1.4