Editing BlenderBIM Add-on Adding labels linked to properties and quantities
From Wiki.OSArch
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 20: | Line 20: | ||
To add a variable text object, first simply create a new text with Add>Text and manually link it to an object - exit the edit mode, go to Object Data Properties > Text Paper space and pick an object in the Related Element field. | To add a variable text object, first simply create a new text with Add>Text and manually link it to an object - exit the edit mode, go to Object Data Properties > Text Paper space and pick an object in the Related Element field. | ||
To declare a variable, go to Object Data Properties > Text Paper space, click on "Add variable" and fill in the variable name. The variable must be now linked to an object property by filling in the Property Key field: | To declare a variable, go to Object Data Properties > Text Paper space, click on "Add variable" and fill in the variable name. The variable must be now linked to an object property by filling in the Property Key field: | ||
− | *Attributes are referenced simply by name. Examples: <code> | + | *Attributes are referenced simply by name. Examples: <code>PredefinedType, GlobalId, Name, Description, ObjectType, Tag</code> |
− | *Properties are referenced by name, prefixed with Pset_Name. Examples: <code> | + | *Properties are referenced by name, prefixed with Pset_Name. Examples: <code>Pset_SpaceCommon.NetPlannedArea</code> |
− | *Quantities are referenced by name, prefixed with Qto_Name. Examples: <code> | + | *Quantities are referenced by name, prefixed with Qto_Name. Examples: <code>Qto_SpaceBaseQuantities.NetFloorArea</code> |
− | *Custom properties (for example in parametric objects) are referenced by name. Examples:<code> | + | *Custom properties (for example in parametric objects) are referenced by name. Examples:<code>Width</code> |
− | *Materials - Make sure to assign the material in 'IFC Object Material'. | + | *Materials - Make sure to assign the material in 'IFC Object Material'. Examples: <code>material.Name, material.LayerSetName</code> |
− | + | **[[File:2020-12-08 16-25-49 blenderBlender (CUsersryanDocumentstesty.blend)blender.png|2020-12-08 16-25-49 blenderBlender (CUsersryanDocumentstesty.blend)blender.png]] | |
− | + | Lastly, to include the variable in the text, enter the edit mode again and type in the variable name in double curly brackets: <code><nowiki>{{variable_name}}</nowiki></code>. | |
− | ** | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||