createCode MethodStatic
Create a Code for a Subject given a name that is meant to be unique within the scope of its parent Subject.
createCode(iModelDb: IModelDb, parentSubjectId: string, codeValue: string): Code
| Parameter | Type | Description | 
|---|---|---|
| iModelDb | IModelDb | The IModelDb | 
| parentSubjectId | string | The Id of the parent Subject that provides the scope for names of its child Subjects. | 
| codeValue | string | The child Subject name | 
Returns - Code
Defined in
- core/backend/src/Element.ts Line 1089
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.