mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 19:49:58 +00:00
descriptions for operators removing classifications/contexts #4614
This commit is contained in:
@@ -209,6 +209,10 @@ class DisableEditingClassification(bpy.types.Operator):
|
|||||||
class RemoveClassification(bpy.types.Operator, tool.Ifc.Operator):
|
class RemoveClassification(bpy.types.Operator, tool.Ifc.Operator):
|
||||||
bl_idname = "bim.remove_classification"
|
bl_idname = "bim.remove_classification"
|
||||||
bl_label = "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"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
classification: bpy.props.IntProperty()
|
classification: bpy.props.IntProperty()
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ class AddContext(bpy.types.Operator, Operator):
|
|||||||
class RemoveContext(bpy.types.Operator, Operator):
|
class RemoveContext(bpy.types.Operator, Operator):
|
||||||
bl_idname = "bim.remove_context"
|
bl_idname = "bim.remove_context"
|
||||||
bl_label = "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"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
context: bpy.props.IntProperty()
|
context: bpy.props.IntProperty()
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ def remove_classification(file, classification=None) -> None:
|
|||||||
"""Removes an IfcClassification from the project and all references
|
"""Removes an IfcClassification from the project and all references
|
||||||
|
|
||||||
The classification and all of its relationships, children 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.
|
removed from a project.
|
||||||
|
|
||||||
:param classification: The IfcClassification entity you want to remove
|
:param classification: The IfcClassification entity you want to remove
|
||||||
|
|||||||
Reference in New Issue
Block a user