Editing BlenderBIM Add-on/BlenderBIM IFCCSV

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 3: Line 3:
 
The IFC CSV feature of [[IfcOpenShell]] is implemented in [[BlenderBIM Add-on]].
 
The IFC CSV feature of [[IfcOpenShell]] is implemented in [[BlenderBIM Add-on]].
  
[[File:Name.png|thumb|IFC CSV panel in the BlenderBIM Add-on]]
+
You can find this feature under Blender Scene Properties -> IFC Collaboration -> IFC CSV Import/Export.
 +
 
 +
[[File:BlenderBIM Add-on IFCCSV panel.png|thumb|IFC CSV panel in the BlenderBIM Add-on]]
 
[[Category:BlenderBIM Add-on]]
 
[[Category:BlenderBIM Add-on]]
  
 
You can either query an external IFC model by loading it via file picker or load the currently active IFC file by ticking off the <code>Load from Memory</code> check box.  
 
You can either query an external IFC model by loading it via file picker or load the currently active IFC file by ticking off the <code>Load from Memory</code> check box.  
  
You can either use the pipette to select objects currently selected in the 3D view or using the [https://docs.ifcopenshell.org/ifcopenshell-python/selector_syntax.html Facet Based Selector Syntax] specify which IFC classes will be queried.  For example, specify IFC classes manually like <code>IfcWall</code> or <code>IfcSlab</code> or you can use a comma <code>,</code> to select more than one class, like so: <code>IfcWindow, IfcSpace</code>.
+
Specify which IFC classes will be queried with the IFC Selector property. Syntax follows the regular [[IfcOpenShell_code_examples#IFC_Query_Syntax|IFC Selector]] syntax, where you can either use the pipette to select objects currently selected in the 3D view or specify IFC classes manually like <code>.IfcClass</code>, eg. <code>.IfcWall</code>. You can use the pipe symbol <code>|</code> to select more than one class, like so: <code>.IfcBuildingElement|.IfcSpace</code>.
 
 
You can save your query as a <code>.json</code> template or load an existing template. Here's an simple example.  
 
  
[[File:Example.png|none|left]]
+
You can save your query as a <code>.json</code> template or load an existing template. The template follows the syntax of a simple list: <code>['Name', 'type']</code>.
  
 
Finally, you can save the output to CSV with the <code>Export IFC to CSV</code> button. One usecase of IFC CSV is to quickly bulk edit many values in an IFC file. So after exporting to CSV, you can edit some properties and load them into your model again with the <code>Import CSV to IFC</code> button.
 
Finally, you can save the output to CSV with the <code>Export IFC to CSV</code> button. One usecase of IFC CSV is to quickly bulk edit many values in an IFC file. So after exporting to CSV, you can edit some properties and load them into your model again with the <code>Import CSV to IFC</code> button.

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: