From 31d322a28c435173e6b451ee973280bde62de187 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 6 May 2024 17:29:30 +0500 Subject: [PATCH] descriptions for operators removing classifications/contexts #4614 --- .../blenderbim/bim/module/classification/operator.py | 4 ++++ src/blenderbim/blenderbim/bim/module/context/operator.py | 4 ++++ .../ifcopenshell/api/classification/remove_classification.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/classification/operator.py b/src/blenderbim/blenderbim/bim/module/classification/operator.py index 623aa59770..7119edae3f 100644 --- a/src/blenderbim/blenderbim/bim/module/classification/operator.py +++ b/src/blenderbim/blenderbim/bim/module/classification/operator.py @@ -209,6 +209,10 @@ class DisableEditingClassification(bpy.types.Operator): class RemoveClassification(bpy.types.Operator, tool.Ifc.Operator): bl_idname = "bim.remove_classification" bl_label = "Remove Classification" + bl_description = ( + "The classification and all of its relationships, children references, " + "and relationships between objects and child references will be completely removed from a project" + ) bl_options = {"REGISTER", "UNDO"} classification: bpy.props.IntProperty() diff --git a/src/blenderbim/blenderbim/bim/module/context/operator.py b/src/blenderbim/blenderbim/bim/module/context/operator.py index fa545168aa..bba6561848 100644 --- a/src/blenderbim/blenderbim/bim/module/context/operator.py +++ b/src/blenderbim/blenderbim/bim/module/context/operator.py @@ -53,6 +53,10 @@ class AddContext(bpy.types.Operator, Operator): class RemoveContext(bpy.types.Operator, Operator): bl_idname = "bim.remove_context" bl_label = "Remove Context" + bl_description = ( + "Remove representation context. Any representation geometry that is assigned to the context is also removed. " + "If a context is removed, then any subcontexts are also removed" + ) bl_options = {"REGISTER", "UNDO"} context: bpy.props.IntProperty() diff --git a/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py b/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py index 42ec050d61..72764006c0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py +++ b/src/ifcopenshell-python/ifcopenshell/api/classification/remove_classification.py @@ -24,7 +24,7 @@ def remove_classification(file, classification=None) -> None: """Removes an IfcClassification from the project and all references The classification and all of its relationships, children references, - and relationships between objectse and child references are completely + and relationships between objects and child references are completely removed from a project. :param classification: The IfcClassification entity you want to remove