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",
};

Selected Entities

There's no need to get all IfcEntities. Let's specify which entities we want.

var selectedEntities = {
    IFCDOOR: "IfcDoor",
    IFCWALLSTANDARDCASE: "IfcWallStandardCase",
};

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"];

All Entities

var allEntities = {
    ...requiredEntities,
    ...selectedEntities,
};

The spread operator can be used to join the two arrays

Config Object

Our final config object is constructed as:

var config = {
    requiredEntities,
    selectedEntities,
    selectedPropertySets,
    allEntities
};

Last updated