Config
Required entities
The first thing we are going to configure is the required entities. These three should do fine.
var requiredEntities = {
IFCPROPERTYSINGLEVALUE: "IfcPropertySingleValue",
IFCRELDEFINESBYPROPERTIES: "IfcRelDefinesByProperties",
IFCPROPERTYSET: "IfcPropertySet",
};
Notice how the object is structured. The key must be in uppercase. The value can have any form.
Selected Entities
There's no need to get all IfcEntities
. Let's specify which entities we want.
var selectedEntities = {
IFCDOOR: "IfcDoor",
IFCWALLSTANDARDCASE: "IfcWallStandardCase",
};
Our sample file has only a door and a wall. It would be unnecessary to try to get the roofs, floors, windows, etc.
A list of common Ifc Entites can be found here:
Selected Property Set
Also, there's no need to get all Property Sets
. Let's specify which we want. Leave the array blank to include all Property Sets
.
var selectedPropertySets = ["Custom_Pset"];
Notice how the object is structured.
This is an array, not an object.
All Entities
var allEntities = {
...requiredEntities,
...selectedEntities,
};
Config Object
Our final config object
is constructed as:
var config = {
requiredEntities,
selectedEntities,
selectedPropertySets,
allEntities
};
Last updated