Method SetLayer
SetLayer(ElementId, ElementId)
Sets the Layer of a document
Declaration
[OperationContract]
[AvailableSinceVersion(7, 18, 0, 0)]
void SetLayer(ElementId inElementId, ElementId inLayerId)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementId | inElementId | Identifier of the element. |
| ElementId | inLayerId | Identifier of the layer. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.18.