mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix #2363. Bug when adding unbuilt schedule to sheet.
This commit is contained in:
@@ -127,6 +127,8 @@ class SheetBuilder:
|
||||
|
||||
def add_schedule(self, reference, schedule, sheet):
|
||||
view_path = tool.Drawing.get_document_uri(schedule)
|
||||
if not os.path.exists(view_path):
|
||||
tool.Drawing.create_svg_schedule(schedule)
|
||||
schedule_name = os.path.splitext(os.path.basename(view_path))[0]
|
||||
sheet_path = tool.Drawing.get_document_uri(sheet)
|
||||
|
||||
|
||||
@@ -274,8 +274,12 @@ class BimToolUI:
|
||||
"IfcDoor",
|
||||
"IfcDoorStandardCase",
|
||||
):
|
||||
row = cls.layout.row(align=True)
|
||||
row.prop(data=cls.props, property="rl", text="RL")
|
||||
if AuthoringData.data["active_class"] in ("IfcWindow", "IfcWindowStandardCase"):
|
||||
row = cls.layout.row(align=True)
|
||||
row.prop(data=cls.props, property="rl2", text="RL")
|
||||
elif AuthoringData.data["active_class"] in ("IfcDoor", "IfcDoorStandardCase"):
|
||||
row = cls.layout.row(align=True)
|
||||
row.prop(data=cls.props, property="rl1", text="RL")
|
||||
|
||||
row = cls.layout.row(align=True)
|
||||
row.label(text="", icon="EVENT_SHIFT")
|
||||
|
||||
@@ -23,6 +23,7 @@ import math
|
||||
import bmesh
|
||||
import mathutils
|
||||
import webbrowser
|
||||
import subprocess
|
||||
import numpy as np
|
||||
import blenderbim.core.tool
|
||||
import blenderbim.core.geometry
|
||||
@@ -906,4 +907,4 @@ class Drawing(blenderbim.core.tool.Drawing):
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
product = cls.get_assigned_product(element)
|
||||
if product:
|
||||
tool.Ifc.get_object(product).select_set(True)
|
||||
tool.Ifc.get_object(product).select_set(True)
|
||||
|
||||
Reference in New Issue
Block a user