IModel Interface

IModel Interface | Send Feedback
See Also Members Example

Allows access to a model.

# Syntax

Visual Basic |
--- | ---
    Public Interface IModel

C# |
--- | ---
    public interface IModel

JavaScript |
--- | ---
    Object dsModel

COM native C++ |
--- | ---
    interface IModel

C++ |
--- | ---
    class dsModel

# Example

This code snippet shows how to get the IModel object.

#### COM native C++

> IDocumentPtr dsDoc (pConnection->GetActiveDocument());
> if(dsDoc == NULL)
> {
> return;
> }
> IModelPtr dsModel( dsDoc->GetModel() );
> if(NULL == dsModel)
> {
> return;
> }

# Example

Fire Application and Document Events (C#)
Fire Application and Document Events (VB.NET)
Fire Application and Document Events (VBA)
Get and Set Block Definitions, Block Instances, and BlockAttribute Instances (C#)
Get and Set Block Definitions, Block Instances, and BlockAttribute Instances (VB.NET)
Get and Set Block Definitions, Block Instances, and BlockAttribute Instances (VBA)
Switch Layouts (C#)
Switch Layouts (VB.NET)
Switch Layouts (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)

# Accessors

IBlockInstance::GetWorkingSpace

IDocument::GetModel

IDocument::GetObjectByHandle

# Object Model

Model

# See Also

####

IModel Members
Interop.dsAutomation Namespace
IViewTile Interface