[IfcOpenShell-Python] How to optimize the ifc file?

edited August 2022 in General

So i have created from this obj file https://github.com/Martin15135215/git_ifc_test/blob/main/test_obj_cubus/cubus_b.obj with this script https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/blenderbim/scripts/obj2ifc-meshlab.py an ifc file https://github.com/Martin15135215/git_ifc_test/blob/main/test_obj_cubus/cubus_b.ifc.

What I have noticed, for example, is that this IFCCARTESIANPOINT((-1.,1.,3.384652)) appears five times in the ifc file. Of course for this small ifc file it doesn't make that big a difference, but if the ifc file is bigger, this duplicate IFCCARTESIANPOINT unnecessarily makes the document bigger than it needs to be.

Is there already a command for the optimization that I can execute before it is saved on line 83 in an ifc file?

Somthing like ifcopenshell.api.run("optimize.remove_duplicate", file=self.file).
i have found nothing in my research. i am happy if someone points it out to me.

Comments

Sign In or Register to comment.