insert Method

Add a new CodeSpec to the iModel.

insert(codeSpec: CodeSpec): Id64String

note If successful, this method will assign a valid CodeSpecId to the supplied CodeSpec

throws IModelError if the insertion fails

Parameter Type Description
codeSpec CodeSpec The CodeSpec to insert

Returns - The Id of the persistent CodeSpec.Add a new CodeSpec to the IModelDb.

insert(name: string, scopeType: Type): Id64String

throws IModelError if the insertion fails

Parameter Type Description
name string The name for the new CodeSpec.
scopeType Type The scope type

Returns - The Id of the persistent CodeSpec.

Defined in

Last Updated: 08 January, 2020