mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
bim.add_proposed_prop - document possible property types
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user