Config
The config
object consist of four required properties:
Required Entities
Selected Entities
Selected Property Sets
All Entities
The config
object is passed into BIMWHALE.js's constructor function as a paramter:
The example showed us the easiest way to pass in this object:
Notice that some properties are JavaScript objects as well.
Here's a summary of the properties within the Config
object:
Property Name
Type
Description
requiredEntities
{ [key: string]: string }
Required IFC entites
selectedEntities
{ [key: string]: string }
Selected IFC entites
selectedPropertySets
string[ ]
Selected Property Sets
allEntities
{ [key: string]: string }
All entities ( requiredEntities + selectedEntities )
Required Entities
These are the required IFC Entities
. BIMWHALE.js will not work without these.
They are hardcoded into the logic. You should NOT change these.
Selected Entities
These are the selected IFC Entities
. There's no need to get all IFC Entities
.
For example, an architect may not be intrested in HVAC components.
This requires that you to have a basic understanding of the IFC schema and its entities. Here are two major categories:
Notice how the object is structured. The key must be in uppercase. The value can have any form.
Selected Property Sets
These are the selected Property Sets
. Again, there's no need to get all Property Sets
.
Please notice that the logic is case senstive. The name must match exactly.
Leave the array empty to include all Property Sets
All Entities
All entites are simply requiredEntities
and selectedEntities
combined. The spread operator is used to join these objects.
Last updated