Methods

  • Parameters

    • modelID: number

      model handle

    • id: number

      expressID of IfcElement

    • recursive: boolean = false

      default false, if true get all nested properties recursively

    • inverse: boolean = false

      default false, if true get all inverse properties recursively

    Returns Promise<any>

    IfcElement

  • Get materials of IfcElement

    Parameters

    • modelID: number

      model handle

    • elementID: number = 0

      expressID of IfcElement, default 0 (all materials in model)

    • recursive: boolean = false

      default false, if true get all nested properties recursively

    • includeTypeMaterials: boolean = false

    Returns Promise<any[]>

    array of IfcElements inheriting from IfcMaterialDefinition

  • Get IfcPropertySets of IfcElements

    Parameters

    • modelID: number

      model handle

    • elementID: number = 0

      expressID of IfcElement, default 0 (all psets in model)

    • recursive: boolean = false

      default false, if true get all nested properties recursively

    • includeTypeProperties: boolean = false

    Returns Promise<any[]>

    array of IfcElements inheriting from IfcPropertySetDefinition

  • Get Spatial Structure of IfcProject

    Parameters

    • modelID: number

      model handle

    • includeProperties: boolean = false

      default false

    Returns Promise<Node>

    IfcProject as Node

  • Get TypeObject of IfcElements

    Parameters

    • modelID: number

      model handle

    • elementID: number = 0

      expressID of IfcElement, default 0 (all type objects in model)

    • recursive: boolean = false

      default false, if true get all nested properties of the type object recursively

    Returns Promise<any[]>

    array of objects inheriting from IfcTypeObject

  • Set IfcRelAssociatesMaterial relations of IfcElements and IfcMaterialDefinitions

    Parameters

    • modelID: number

      model handle

    • elementID: number | number[]

      expressID or array of expressIDs of IfcElements

    • materialID: number | number[]

      expressID or array of expressIDs of IfcMaterialDefinitions

    Returns Promise<boolean>

    true if success or false if error

  • Set IfcRelDefinesByProperties relations of IfcElements and IfcPropertySets

    Parameters

    • modelID: number

      model handle

    • elementID: number | number[]

      expressID or array of expressIDs of IfcElements

    • psetID: number | number[]

      expressID or array of expressIDs of IfcPropertySets

    Returns Promise<boolean>

    true if success or false if error