CreateLayer Method (ILayerManager)

CreateLayer Method (ILayerManager) | Send Feedback
See Also Example

Name
  Name

Layer[out]
  Layer

Result[out]
  Status of creating the Layer as defined in dsCreateObjectResult_e

Creates a Layer in the document.

# Syntax

Visual Basic |
--- | ---
    Sub CreateLayer( _
       ByVal Name As System.String, _
       ByRef Layer As Layer, _
       ByRef Result As dsCreateObjectResult_e _
    )

C# |
--- | ---
    void CreateLayer(
       System.string Name,
       out Layer Layer,
       out dsCreateObjectResult_e Result
    )

JavaScript |
--- | ---
    CreateLayer(
       Name : String
    ) : {
       Layer : dsLayer,
       Result : String
    }

COM native C++ |
--- | ---
    HRESULT CreateLayer(
       BSTR Name,
       ILayer** Layer,
       dsCreateObjectResult_e* Result
    )

C++ |
--- | ---
    DSRESULT CreateLayer(
       const dsString& Name,
       dsLayer** Layer,
       dsCreateObjectResult_e* Result
    )

#### Parameters

Name
  Name
Layer[out]
  Layer
Result[out] or Return Value
  Status of creating the Layer as defined in dsCreateObjectResult_e

# Example

Create Circles on Different Layers (JavaScript)

# See Also

####

ILayerManager Interface
ILayerManager Members
ILayerManager::RemoveLayer Method

# Availability

DraftSight V1R1.1