Method CreateSubclass
CreateSubclass(ElementId, string, string, string)
Creates a class entity as a subclass of a higher level class entity.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 10, 0, 0)]
ElementId CreateSubclass(ElementId inElementId, string inDescription, string inCode, string inComment)
Parameters
| Type | Name | Description |
|---|---|---|
| ElementId | inElementId | Identifier of the higher level class entity to modify. |
| string | inDescription | Class description. |
| string | inCode | Class code, or empty string if none. |
| string | inComment | Class comment, or empty string if none. |
Returns
| Type | Description |
|---|---|
| ElementId | Identifier of the created class entity. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
The classification document must contain enough level entities otherwise an exception is thrown.
This method is available since v7.10.