insert MethodStatic

Insert a Subject

insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String

throws IModelError if there is a problem inserting the Subject

Parameter Type Description
iModelDb IModelDb Insert into this IModelDb
parentSubjectId Id64String The new Subject will be inserted as a child of this Subject
name string The name (codeValue) of the Subject
description string The optional description of the Subject

Returns - Id64String

The Id of the newly inserted Subject

Defined in

Last Updated: 13 June, 2024