How to access in IFC custom properties

Hi everyone,
I'm trying to access and store the custom properties of my IFC object automatically. The problem is that the pset_id value is put in the code manually (every time I have to look for the value from Blender accessing into pset from the User interface of Blender) because the value changes each time I make a new project. Is there a way to make the process automatic?
I attach my code as txt file to this question.
Thank you in advance and I hope that my question is clear.

Comments

  • Access it via IFC instead:

    import ifcopenshell.util.element
    import blenderbim.tool as tool
    core = bpy.data.objects.get("IfcCivilElement/core_model")
    psets = ifcopenshell.util.element.get_psets(tool.Ifc.get_entity(core))
    print(psets)
    
    valgianfsteverugitim
  • @Moult Thank you so much for your response

Sign In or Register to comment.