i want to know from where this color is set in the code. is it default color for space elements in web viewer?.
Hello,
There isn’t an API to specifically set the color for space elements, per se. That said, it’s possible to get a Set
object of nodes with a type of IfcSpace. At which point, you can set the color by calling setNodesFaceColor. For example:
var space = hwv.model.getNodesByGenericType(Communicator.StaticGenericType.IfcSpace);
var color = new Communicator.Color(255, 0, 255);
hwv.model.setNodesFaceColor(Array.from(space), color);
Thanks,
Tino