Skip to main content

Discipline

Discipline

Index

Properties

publicreadonlyifcObjectCount

ifcObjectCount: number = 0

Number of BimIfcObject instances using this class.

publicreadonlyifcObjectsWithGeometryCount

ifcObjectsWithGeometryCount: number = 0

Number of instances where BimIfcObject.hasGeometry === true that are using this class

publicreadonlyshort

short: string

publicstaticreadonlyAll

All: Map<string, string> = ...

Short ID for all known disciplines mapped to their full names

publicstaticreadonlyNotAvailable

NotAvailable: Discipline = ...

Discipline representing a not unknown discipline.

publicstaticreadonlyNotAvailableShortId

NotAvailableShortId: string = 'NA'

Short ID for not unknown discipline. Used for unknown disciplines.

Accessors

publicdescription

  • get description(): string
  • Discipline description


    Returns string

publicreferencedClasses

  • get referencedClasses(): DeepImmutableObject<BimIfcClass>[]
  • Gets an array of all classes that have references to this disciple.


    Returns DeepImmutableObject<BimIfcClass>[]

Methods

publicstaticgetOrAdd

publicstaticgetOrAddFromServerRelativeUrl

  • getOrAddFromServerRelativeUrl(serverRelativeUrl: string): Discipline
  • Get the discipline that a serverRelativeUrl represents. We simply split the url on / and attempt to find the last segment that matches a known discipline short id. If none is found then Discipline.NotAvailable is returned.


    Parameters

    • serverRelativeUrl: string

    Returns Discipline

    Discipline. If instance is reference equal to Discipline.NotAvailable then no discipline was found.

publicstaticreset

  • reset(): void
  • Resets all disciplines to their original state. referencedClasses is cleared. ifcObjectCount and ifcObjectsWithGeometryCount are set to 0


    Returns void