Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 32fc147

Browse files
committed
Fixed error on rebuilding sheet with underlays
Also added description and more clear name for `bim.open_sheet` Error was: ``` Error: Python: Traceback (most recent call last): File "\addons\blenderbim\bim\module\drawing\operator.py", line 82, in execute IfcStore.execute_ifc_operator(self, context) File "\addons\blenderbim\bim\ifc.py", line 410, in execute_ifc_operator result = getattr(operator, "_execute")(context) File "\addons\blenderbim\bim\module\drawing\operator.py", line 1177, in _execute del raster_references[reference.Location] TypeError: list indices must be integers or slices, not str ```
1 parent d980542 commit 32fc147

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • src/blenderbim/blenderbim/bim/module/drawing

src/blenderbim/blenderbim/bim/module/drawing/operator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ def _execute(self, context):
10551055

10561056
class OpenSheet(bpy.types.Operator, Operator):
10571057
bl_idname = "bim.open_sheet"
1058-
bl_label = "Open Sheet"
1058+
bl_label = "Open Sheet Layout"
10591059
bl_options = {"REGISTER", "UNDO"}
10601060

10611061
def _execute(self, context):
@@ -1138,6 +1138,7 @@ def _execute(self, context):
11381138
class CreateSheets(bpy.types.Operator, Operator):
11391139
bl_idname = "bim.create_sheets"
11401140
bl_label = "Create Sheets"
1141+
bl_description = "Build a sheet from the sheet layout"
11411142
bl_options = {"REGISTER", "UNDO"}
11421143

11431144
@classmethod
@@ -1174,7 +1175,7 @@ def _execute(self, context):
11741175
has_sheet_reference = True
11751176
elif reference.Description == "RASTER":
11761177
if reference.Location in raster_references:
1177-
del raster_references[reference.Location]
1178+
raster_references.remove(reference.Location)
11781179
else:
11791180
tool.Ifc.run("document.remove_reference", reference=reference)
11801181

0 commit comments

Comments
 (0)