If you're reading this, we've just migrated servers! If anything looks broken please email dion@thinkmoult.com :)
remove and replace IFCperson
Hi,
I am trying to run a code to replace the owner (“OwnerHistory” of my project.
I want to replace the name
I tried to run this:
#ifcopenshell.api.owner.edit_person
person = ifcopenshell.api.run("owner.add_person", model,
identification="MM", family_name="Mllll", given_name="Mllll")
ifcopenshell.api.run("owner.edit_person", model, person=person,
attributes={"MiddleNames": ["M----"], "FamilyName": "M----"})
#ifcopenshell.api.owner.remove_person
person = ifcopenshell.api.run("owner.add_person", model,
identification="$", family_name='', given_name= "DF73F")
ifcopenshell.api.run("owner.remove_person", model, person=person)
What it does it just to add a new owner person but it doesnt edit or remove the previous one. I am forgetting something?
Thanks
Comments
Instead of adding a new person and removing / replacing the old one, why not just edit the old one in place?