Discipline
Index
Properties
publicreadonlyifcObjectCount
Number of BimIfcObject instances using this class.
publicreadonlyifcObjectsWithGeometryCount
Number of instances where BimIfcObjects.hasGeometry === true that are using this class
publicreadonlyshort
Accessors
publicdescription
Discipline description
Returns string
publicreferencedClasses
Gets an array of all classes that have references to this disciple.
Returns DeepImmutableObject<BimIfcClass>[]
Methods
publicstaticgetOrAdd
Gets a Discipline instance from a discipline short code.
Parameters
disciplineShort: string
short discipline code. See Discipline.All for a non exhaustive list.
Returns Discipline
Discipline representing the short code.
publicstaticgetOrAddFromServerRelativeUrl
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
Resets all disciplines to their original state. _referencedClassesSet is cleared. ifcObjectCount and ifcObjectsWithGeometryCount are set to 0
Returns void
Discipline