ChangeSheetTitleBlock operator

Added operator to change title block of currently selected sheet, it's located right after "Add sheet" button.
The way it works - you select the sheet, select the desired titleblock from dropdown menu and it overrides current titleblock from the sheet with the new one.
This commit is contained in:
Andrej730
2023-04-06 10:54:04 +05:00
parent ab23030051
commit c2320a3c1e
4 changed files with 51 additions and 1 deletions
@@ -274,6 +274,7 @@ class BIM_PT_sheets(Panel):
row = self.layout.row(align=True)
row.prop(self.props, "titleblock", text="")
row.operator("bim.add_sheet", text="", icon="ADD")
row.operator("bim.change_sheet_title_block", text="", icon="MODIFIER_DATA")
row.operator("bim.disable_editing_sheets", text="", icon="CANCEL")
if self.props.sheets and self.props.active_sheet_index < len(self.props.sheets):