-
I am trying to make a large quantitiy of unique IfcPropertySet(s), and GeometryGym just seems to slow to handle the operation. For instance, in a given IFC file, there is very likely tens of thousands of IfcEntity(s). If I want to make a new IfcPropertySet that is applied to all objects, the operation is too heavy for GeometryGym. Perhaps there is a better way to do this given GeometryGym's logics, but this is the code I have written:
The slow part of the operation is adding a reference to the IfcPropertySet for each IfcEntity by doing the .RelatObjectDefinition() method for each individual IfcEntity. This is the only way I could think to do this because there is no IfcPropertySet constructor that has an IEnumerable as an argument. Perhaps there should be a constructor that allows multiple related objects to be set. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Further, what I ultimately want to do is replace an IfcPropertySet for each IfcEntity with a new version of the IfcPropertySet with additional IfcProperty(s) and different values. So, first I need to remove the reference to the origianl IfcPropertySet before creating the new IfcPropertySet with the new name. This operation is also incredibly heavy because I am iterating through each IfcEntity in the Project.
|
Beta Was this translation helpful? Give feedback.
Further, what I ultimately want to do is replace an IfcPropertySet for each IfcEntity with a new version of the IfcPropertySet with additional IfcProperty(s) and different values. So, first I need to remove the reference to the origianl IfcPropertySet before creating the new IfcPropertySet with the new name. This operation is also incredibly heavy because I am iterating through each IfcEntity in the Project.