GetBlockDefinition Method (IBlockInstance)

GetBlockDefinition Method (IBlockInstance) | Send Feedback
See Also Example

BlockDef[out]
  Block definition

Gets the Block definition for the Block instance.

# Syntax

Visual Basic |
--- | ---
    Function GetBlockDefinition() As BlockDefinition

C# |
--- | ---
    BlockDefinition GetBlockDefinition()

JavaScript |
--- | ---
    GetBlockDefinition() : dsBlockDefinition

COM native C++ |
--- | ---
    HRESULT GetBlockDefinition(
       IBlockDefinition** BlockDef
    )

C++ |
--- | ---
    DSRESULT GetBlockDefinition(
       dsBlockDefinition** BlockDef
    )

#### Parameters

BlockDef[out] or Return Value
  Block definition

# Example

This code snippet shows how to get the Block definition for a Block instance.

#### COM native C++

> //Get Block definition for Block instance
> IBlockDefinition blockDef = blkIns->GetBlockDefinition();

# Example

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)

# See Also

####

IBlockInstance Interface
IBlockInstance Members

# Availability

DraftSight V1R1