CreateModelNamedView Method (IViewManager) Send Feedback
See Also  Example
Result[out]
Result status as defined in dsCreateObjectResult_e
Name[out]
Name of the model named view
Class
Name of category to which to assign this model named view
FirstCornerDblArray
Array of doubles of the x, y, and z coordinates for the corner of the window that defines the view
OppositeCornerDblArray
Array of doubles of the x, y, and z coordinates for the opposite corner of the window that defines the view
NamedView[out]
IModelNamedView
Creates a model named view.

Syntax

Visual Basic 
Function CreateModelNamedView( _
   ByVal Name As System.String, _
   ByVal Class As System.String, _
   ByVal FirstCornerDblArray As System.Object, _
   ByVal OppositeCornerDblArray As System.Object, _
   ByRef NamedView As ModelNamedView _
) As dsCreateObjectResult_e
C# 
dsCreateObjectResult_e CreateModelNamedView( 
   System.string Name,
   System.string Class,
   System.object FirstCornerDblArray,
   System.object OppositeCornerDblArray,
   out ModelNamedView NamedView
)
JavaScript 
CreateModelNamedView( 
   Name : String,
   Class : String,
   FirstCornerDblArray : Array,
   OppositeCornerDblArray : Array
) : {
   NamedView : dsModelNamedView,
   Result : String
}
COM native C++ 
HRESULT CreateModelNamedView( 
   BSTR Name,
   BSTR Class,
   VARIANT FirstCornerDblArray,
   VARIANT OppositeCornerDblArray,
   IModelNamedView** NamedView,
   dsCreateObjectResult_e* Result
) 
C++ 
DSRESULT CreateModelNamedView( 
   const dsString& Name,
   const dsString& Class,
   const dsDoubleArray& FirstCornerDblArray,
   const dsDoubleArray& OppositeCornerDblArray,
   dsModelNamedView** NamedView,
   dsCreateObjectResult_e* Result
) 

Parameters

Name[out]
Name of the model named view
Class
Name of category to which to assign this model named view
FirstCornerDblArray
Array of doubles of the x, y, and z coordinates for the corner of the window that defines the view
OppositeCornerDblArray
Array of doubles of the x, y, and z coordinates for the opposite corner of the window that defines the view
NamedView[out]
IModelNamedView
Result[out] or Return Value
Result status as defined in dsCreateObjectResult_e

Example

 

See Also

Availability

DraftSight V1R1.4