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><nowiki>{{PredefinedType}}</nowiki></code>, <code><nowiki>{{GlobalId}}</nowiki></code>, <code><nowiki>{{Name}}</nowiki></code>, <code><nowiki>{{Description}}</nowiki></code>, <code><nowiki>{{ObjectType}}</nowiki></code>, <code><nowiki>{{Tag}}</nowiki></code>
+
*Attributes are referenced simply by name - "Name"
*Properties are referenced by name, prefixed with Pset_Name. Examples: <code><nowiki>{{Pset_SpaceCommon.NetPlannedArea}}</nowiki></code>
+
*Properties are referenced by name, prefixed with Pset_Name. - "Pset_SpaceCommon.NetPlannedArea"
*Quantities are referenced by name, prefixed with Qto_Name. Examples: <code><nowiki>{{Qto_SpaceBaseQuantities.NetFloorArea}}</nowiki></code>
+
*Quantities are referenced by name, prefixed with Qto_Name. - "Qto_SpaceBaseQuantities.NetFloorArea"
*Custom properties (for example in parametric objects) are referenced by name. Examples:<code><nowiki>{{Width}}</nowiki></code>
+
*Custom properties (for example in parametric objects) are referenced by name - "Width"
*Materials - Make sure to assign the material in 'IFC Object Material'.
+
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>.
**<code><nowiki>{{material.Name}}</nowiki></code>
 
**<code><nowiki>{{material.LayerSetName}}</nowiki></code>
 
**<code><nowiki>{{material.item.Material.Name}}</nowiki></code>
 
**<code><nowiki>{{material.MaterialLayers.Name}}</nowiki></code>
 
***other ways to say the same thing
 
****<code><nowiki>{{material.item.Name}}}</nowiki></code>
 
****<code><nowiki>{{"material"."item"."Name"}}</nowiki></code>
 
****<code><nowiki>{{r"material"."item"."Name"}}</nowiki></code>
 
****<code><nowiki>{{mat.i.Name}}</nowiki></code>
 
**You can use the double backtick command to run any types of custom evaluations
 
***<code><nowiki>``{{material.item.Material.Name}}[0]``</nowiki></code> gets the material name assigned to the 1st material layer
 
****This works too: <code><nowiki>{{material.item.Material.Name.0}}</nowiki></code>
 
***<code><nowiki>``round(sum({{mat.i.LayerThickness}}),2)``</nowiki></code> displays the total layer thickness rounded to 2 decimal points
 
***<code><nowiki>``{{r"Pset_.*Common"."Status"}}[0]``</nowiki></code> = EXISTING (for example)
 
****<code><nowiki>``{{r"Pset_.*Common"."Status"}}[0][:2]``</nowiki></code> = EX (for example)
 
***<code><nowiki>``int({{Qto_SpaceBaseQuantities.NetFloorArea}})`` SF</nowiki></code> = 350 SF (for example)
 
 
 
 
 
 
 
  
 
[[File:BlenderBIM IfcSpace Tag.JPG|thumb|600px|frame|center|An example of a tagged Ifc Element]]
 
[[File:BlenderBIM IfcSpace Tag.JPG|thumb|600px|frame|center|An example of a tagged Ifc Element]]

Please note that all contributions to Wiki.OSArch are considered to be released under the Creative Commons Attribution-ShareAlike (see Wiki.OSArch:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: