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⁄templates⁄</code> | The symbols and hatches referenced by the CSS file are standard SVG files stored in <code>PROJECT_DATA_DIRECTORY⁄templates⁄</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 | + | 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. |
− | |||
[[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 | + | **** <code>.IfcElement[r"Pset_.*Common"."Status"="DEMOLISH"]</code> |
− | **** <code>IfcElement | + | **** <code>.IfcElement[r"Pset_.*Common"."Status"="NEW"]</code> |
− | |||
*** Include: | *** Include: | ||
− | **** <code>IfcElement | + | **** <code>.IfcElement[r"Pset_.*Common"."Status"="NEW"] </code> only show new. |
− | **** <code>IfcElement | + | **** <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]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Background SVG's: https://github.com/IfcOpenShell/IfcOpenShell/issues/3002#issuecomment-1518668495 | Background SVG's: https://github.com/IfcOpenShell/IfcOpenShell/issues/3002#issuecomment-1518668495 | ||
− | |||
− | |||
− | |||
= Settings in Blender Preferences - Add-ons= | = Settings in Blender Preferences - Add-ons= | ||
* SVG Command: | * SVG Command: | ||
− | ** Windows | + | ** Windows Example: <code> [[[['C:\\Program Files\\Inkscape\\bin\\inkscape.exe', path]]]] </code> |
− | + | ||
− | + | ||
= See also= | = See also= |