Method CreateLayer
CreateLayer(DocumentId, string, int)
Creates a real parameter entity in a document.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 18, 0, 0)]
ElementId CreateLayer(DocumentId inDocumentId, string inName, int inNumber = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the document to modify. |
| string | inName | Name of the layer. |
| int | inNumber | Index of the layer. |
Returns
| Type | Description |
|---|---|
| ElementId | Identifier of the created parameter entity. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.18.