bim.add_proposed_prop - document possible property types

This commit is contained in:
Andrej730
2024-09-12 11:38:08 +05:00
parent cc90c92dec
commit 0f6cc7326c
2 changed files with 9 additions and 0 deletions
@@ -433,6 +433,14 @@ class BIM_OT_bulk_remove_psets(bpy.types.Operator, tool.Ifc.Operator):
class AddProposedProp(bpy.types.Operator):
bl_idname = "bim.add_proposed_prop"
bl_label = "Add Proposed Prop"
bl_description = (
"Add proposed property to the custom property set.\n\n"
"Property type will be deduced from the provided value. Possible types:\n"
"- provide an integer or a float to create integer/real property\n"
"- 'true', 'false' to add a boolean property\n"
"- 'null' or '' (empty value) to add a null property\n"
"- any other value will be added as a string property"
)
bl_options = {"REGISTER", "UNDO"}
obj: bpy.props.StringProperty()
obj_type: bpy.props.StringProperty()
@@ -243,6 +243,7 @@ class PsetProperties(PropertyGroup):
properties: CollectionProperty(name="Properties", type=IfcProperty)
pset_name: EnumProperty(items=get_pset_name, name="Pset Name")
qto_name: EnumProperty(items=get_qto_name, name="Qto Name")
# Proposed property.
prop_name: StringProperty(name="Property Name", default="MyProperty")
prop_value: StringProperty(name="Property Value", default="Some Value")