@@ -514,28 +514,28 @@ def import_representation(cls, obj, representation, apply_openings=True):
514514 ifc_import_settings = blenderbim .bim .import_ifc .IfcImportSettings .factory (bpy .context , None , logger )
515515 element = tool .Ifc .get_entity (obj )
516516 settings = ifcopenshell .geom .settings ()
517- settings .set (settings . WELD_VERTICES , True )
517+ settings .set ("weld-vertices" , True )
518518 context = representation .ContextOfItems
519519
520520 if element .is_a ("IfcTypeProduct" ):
521521 # You may only specify a single representation when creating shapes for types
522522 try :
523523 shape = ifcopenshell .geom .create_shape (settings , representation )
524524 except :
525- settings .set (settings . INCLUDE_CURVES , True )
525+ settings .set ("dimensionality" , ifcopenshell . ifcopenshell_wrapper . CURVES_SURFACES_AND_SOLIDS )
526526 shape = ifcopenshell .geom .create_shape (settings , representation )
527527 else :
528528 if not apply_openings :
529- settings .set (settings . DISABLE_OPENING_SUBTRACTIONS , True )
529+ settings .set ("disable-opening-subtractions" , True )
530530
531531 if context .ContextIdentifier == "Body" and context .TargetView == "MODEL_VIEW" :
532532 try :
533533 shape = ifcopenshell .geom .create_shape (settings , element , representation )
534534 except :
535- settings .set (settings . INCLUDE_CURVES , True )
535+ settings .set ("dimensionality" , ifcopenshell . ifcopenshell_wrapper . CURVES_SURFACES_AND_SOLIDS )
536536 shape = ifcopenshell .geom .create_shape (settings , element , representation )
537537 else :
538- settings .set (settings . INCLUDE_CURVES , True )
538+ settings .set ("dimensionality" , ifcopenshell . ifcopenshell_wrapper . CURVES_SURFACES_AND_SOLIDS )
539539 shape = ifcopenshell .geom .create_shape (settings , element , representation )
540540
541541 ifc_importer = blenderbim .bim .import_ifc .IfcImporter (ifc_import_settings )
@@ -779,7 +779,7 @@ def reload_representation(cls, obj_or_objs: Union[bpy.types.Object, Iterable[bpy
779779 # Filter out unique meshes to avoid
780780 # reloading the same representation multiple times.
781781 meshes_to_objects : dict [bpy .types .Mesh , bpy .types .Object ]
782- meshes_to_objects = {(obj := tool .Ifc .get_object (element )).data : obj for element in elements }
782+ meshes_to_objects = {(obj := tool .Ifc .get_object (element )).data : obj for element in elements }
783783
784784 for obj in meshes_to_objects .values ():
785785 representation = tool .Ifc .get ().by_id (obj .data .BIMMeshProperties .ifc_definition_id )
0 commit comments