mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
fix #3385 - renaming grids with "F2"
This commit is contained in:
@@ -72,6 +72,9 @@ def name_callback(obj, data):
|
|||||||
if not obj.BIMObjectProperties.ifc_definition_id or "/" not in obj.name:
|
if not obj.BIMObjectProperties.ifc_definition_id or "/" not in obj.name:
|
||||||
return
|
return
|
||||||
element = IfcStore.get_file().by_id(obj.BIMObjectProperties.ifc_definition_id)
|
element = IfcStore.get_file().by_id(obj.BIMObjectProperties.ifc_definition_id)
|
||||||
|
if element.is_a("IfcGridAxis"):
|
||||||
|
element.AxisTag = obj.name.split("/")[1]
|
||||||
|
refresh_ui_data()
|
||||||
if not element.is_a("IfcRoot"):
|
if not element.is_a("IfcRoot"):
|
||||||
return
|
return
|
||||||
if obj.BIMObjectProperties.collection:
|
if obj.BIMObjectProperties.collection:
|
||||||
|
|||||||
Reference in New Issue
Block a user