GetSketchManager Method (IModel)

GetSketchManager Method (IModel) | Send Feedback
See Also Example

SkMngr[out]
  ISketchManager

Gets the sketch interface.

# Syntax

Visual Basic |
--- | ---
    Function GetSketchManager() As SketchManager

C# |
--- | ---
    SketchManager GetSketchManager()

JavaScript |
--- | ---
    GetSketchManager() : dsSketchManager

COM native C++ |
--- | ---
    HRESULT GetSketchManager(
       ISketchManager** SkMngr
    )

C++ |
--- | ---
    DSRESULT GetSketchManager(
       dsSketchManager** SkMngr
    )

#### Parameters

SkMngr[out] or Return Value
  ISketchManager

# Example

This code snippet shows how to get the sketch interface.

#### COM native C++

> IModelPtr dsModel( dsDoc->GetModel() );
> if(NULL == dsModel)
> {
> return;
> }
> ISketchManagerPtr dsSketchManager( dsModel->GetSketchManager() );
> if(NULL == dsSketchManager)
> {
> return;
> }

# Example

Fire Application and Document Events (C#)
Fire Application and Document Events (VB.NET)
Fire Application and Document Events (VBA)
Construct Circle (C#)
Construct Circle (VB.NET)
Construct Circle (VBA)
Insert Lines and Angular Dimension (JavaScript)
Create Circles on Different Layers (JavaScript)
Insert Block, Notes, and Sketch Entities (JavaScript)
Insert Splines (JavaScript)
Insert HyperLink (JavaScript)
Insert and Dimension Sketch (JavaScript)
Mirror Entities (JavaScript)
Add and Modify Custom Data (JavaScript)
Insert Hatch (JavaScript)

# See Also

####

IModel Interface
IModel Members

# Availability

DraftSight V1R1