Editing BlenderBIM Add-on/BlenderBIM Add-on exporting 2D documentation

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 31: Line 31:
 
The symbols and hatches referenced by the CSS file are standard SVG files stored in <code>PROJECT_DATA_DIRECTORY&frasl;templates&frasl;</code>
 
The symbols and hatches referenced by the CSS file are standard SVG files stored in <code>PROJECT_DATA_DIRECTORY&frasl;templates&frasl;</code>
  
The predefined material classes are assigned automatically to all objects, based on the name of their Blender material. As an example, when no material is defined, the section hatch in SVG is the default black. By assigning a material named named <code>brick</code> (case sensitive!) to an object, its resulting hatch in SVG changes in two parallel diagonal lines. Note that it is's blender material name if your object's material is IfcMaterial. If it's not IfcMaterial (for example if it's IfcMaterialLayerSet) then <code>brick</code> should be IfcMaterialLayerSet's name.
+
The predefined material classes are assigned automatically to all objects, based on the name of their Blender material. As an example, when no material is defined, the section hatch in SVG is the default black. By assigning a material named named "brick" (case sensitive!) to an object, its resulting hatch in SVG changes in two parallel diagonal lines. Note that it is's blender material name if your object's material is IfcMaterial. If it's not IfcMaterial (for example if it's IfcMaterialLayerSet) then "brick" should be IfcMaterialLayerSet's name.
  
There are more patterns for materials you can find in [https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/blenderbim/blenderbim/bim/data/assets/patterns.svg?short_path=11be0ee blenderbim\bim\data\assets\patterns.svg] that comes with BlenderBIM. Patterns like <code>crosshatch1</code>, <code>crosshatch2</code>, <code>crosshatch3</code>, <code>sand</code>, <code>grass</code>, etc. You can also define your own patterns in the similar manner.
 
 
[[File:Svg brick hatch pattern.jpg|frame|center|Left: object without material, Right: object with Blender material named "brick".]]
 
[[File:Svg brick hatch pattern.jpg|frame|center|Left: object without material, Right: object with Blender material named "brick".]]
  
Line 98: Line 97:
 
** In the Include and Exclude property you can indicate what to include/exclude from the drawing.  A few examples.
 
** In the Include and Exclude property you can indicate what to include/exclude from the drawing.  A few examples.
 
*** Exclude:
 
*** Exclude:
**** <code>IfcElement , /Pset_.*Common/.Status=DEMOLISH</code>
+
**** <code>.IfcElement[r"Pset_.*Common"."Status"="DEMOLISH"]</code>
**** <code>IfcElement , /Pset_.*Common/.Status=NEW</code>
+
**** <code>.IfcElement[r"Pset_.*Common"."Status"="NEW"]</code>
**** <code>IfcElement , EPset_Status.Status=DEMOLISH</code>
 
 
*** Include:
 
*** Include:
**** <code>IfcElement , /Pset_.*Common/.Status=DEMOLISH</code> only show demo.
+
**** <code>.IfcElement[r"Pset_.*Common"."Status"="NEW"] </code> only show new.
**** <code>IfcElement , /Pset_.*Common/.Status=NEW</code> only show new.
+
**** <code>.IfcElement[r"Pset_.*Common"."Status"="DEMOLISH"] </code> only show demo.
 
* Paths to...
 
* Paths to...
 
** Stylesheet:
 
** Stylesheet:
Line 138: Line 136:
 
[[File:BlenderBIM ViewExportOptions 01.JPG|frame|center|View export options]]
 
[[File:BlenderBIM ViewExportOptions 01.JPG|frame|center|View export options]]
  
==Creating schedules and adding them to a sheet==
 
  
video: https://matrix.to/#/!WKUQKbTubvxEQJxrIY:matrix.org/$ESx7ajDMO8ZBQahCuD63p0UXn38TCz7cfK4ipq0bgcw?via=matrix.org
 
 
Using IFCCSV
 
https://wiki.osarch.org/index.php?title=BlenderBIM_Add-on/BlenderBIM_IFCCSV
 
 
==Background SVG==
 
 
Background SVG's: https://github.com/IfcOpenShell/IfcOpenShell/issues/3002#issuecomment-1518668495
 
Background SVG's: https://github.com/IfcOpenShell/IfcOpenShell/issues/3002#issuecomment-1518668495
 
==Copying Annotation from one drawing to another==
 
https://github.com/IfcOpenShell/IfcOpenShell/issues/2966#issuecomment-1606914228
 
  
 
= Settings in Blender Preferences - Add-ons=
 
= Settings in Blender Preferences - Add-ons=
 
* SVG Command:  
 
* SVG Command:  
** Windows Examples:  
+
** Windows Example: <code> [[[['C:\\Program Files\\Inkscape\\bin\\inkscape.exe', path]]]] </code>
*** <code> [[[["C:/Program Files/Google/Chrome/Application/chrome.exe",  "path"]]]] </code>
+
 
*** <code> [[[["C:/Program Files/Inkscape/bin/inkscape.exe", "path"]]]] </code>
+
 
  
 
= See also=
 
= See also=

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)