adding a new pset by python adds a new IfcOwnerHistory, get rid of this
if a pset is added to a product a IfcOwnerHistory is added as well. Means if the modell has 10000 elements and each element gets 3 psets, the model has 30000 new lines with IfcOwnerHistory. But instead of all these new entities the only one available IfcOwnerHistory could be used instead.
This leads to two questions:
Why does any new pset on any new produkt add an own IfcOwnerHistory?
Is there a possibility to pass the one existing IfcOwnerHistory an use this insted create thousands of new ones.
bernd
The example command used was ...
# parse ifcfile ...
w=ifcfile.by_type("IfcWall")[0]
import ifcopenshell.api
ifcopenshell.api.run("pset.add_pset", ifcfile, product=w, name="MyPSet")
Comments
No one an idea?
Its a tradeoff between batching owner history now and checking for inverses later when editing. Many individual owner histories make editing faster as inverses don't need to be handled.
It was on the todo list a few versions back to support multiple modes of history batching : per call, per transaction, or per session. Its now been forgotten but please feel free to file a hug so we don't forget again.