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")