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. |
− | + | [[File:BlenderBIM_SVGHatch_01.jpg|frame|center|Left: object without material, Right: object with Blender material named "brick".]] | |
− | [[File: | ||
==Adding annotation== | ==Adding annotation== | ||
Line 60: | Line 59: | ||
** Set the Description attribute of that dimension. This means that that dimension needs to be separate from other dimensions. | ** Set the Description attribute of that dimension. This means that that dimension needs to be separate from other dimensions. | ||
** Add BBIM_Dimension pset and enable "DescriptionOnly". Otherwise the description is shown in addition, instead of replacing the dimension. | ** Add BBIM_Dimension pset and enable "DescriptionOnly". Otherwise the description is shown in addition, instead of replacing the dimension. | ||
− | |||
− | |||
− | |||
− | |||
==Intelligent Tagging of Objects== | ==Intelligent Tagging of Objects== | ||
Go [[BlenderBIM Add-on Adding labels linked to properties and quantities|here]] for adding labels, like wall/window tags, that are intelligently linked to the object's data. | Go [[BlenderBIM Add-on Adding labels linked to properties and quantities|here]] for adding labels, like wall/window tags, that are intelligently linked to the object's data. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Drawing Styles and Filters== | ==Drawing Styles and Filters== | ||
Line 92: | Line 72: | ||
*** <code>Pset_WallCommon.Status</code> | *** <code>Pset_WallCommon.Status</code> | ||
*** <code>r"Pset_.*Common"</code> | *** <code>r"Pset_.*Common"</code> | ||
− | |||
− | |||
− | |||
* Include and Exclude | * Include and Exclude | ||
** 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. | ||
− | + | *** <code>.IfcElement[r"Pset_.*Common"."Status"="DEMOLISH"]</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* Paths to... | * Paths to... | ||
** Stylesheet: | ** Stylesheet: | ||
− | *** defaults to: | + | *** <code>defaults to: drawings\assets\default.css</code> |
** Markers: | ** Markers: | ||
− | *** defaults to: | + | *** <code>defaults to: drawings\assets\markers.svg</code> |
** Symbols: | ** Symbols: | ||
− | *** defaults to: | + | *** <code>defaults to: drawings\assets\symbols.svg</code> |
** Patterns: | ** Patterns: | ||
− | *** | + | *** <code>defaults to: drawings\assets\patterns.svg</code> |
− | |||
− | |||
− | |||
* Dimension Rounding | * Dimension Rounding | ||
** MetricPrecision: | ** MetricPrecision: | ||
** ImperialPrecision: | ** ImperialPrecision: | ||
*** Example: <code>1/2</code> rounds to the nearest 1/2" | *** Example: <code>1/2</code> rounds to the nearest 1/2" | ||
− | |||
− | |||
==Text Styling== | ==Text Styling== | ||
* Background for Ifc Text annotations in SVG | * Background for Ifc Text annotations in SVG | ||
− | + | ** Added option to fill background of Ifc Text annotation with white color. | |
− | + | ** To make it work need to add "fill-bg" class to EPset_Annotation - https://i.imgur.com/ig2EhkQ.png. | |
+ | ** Result - https://i.imgur.com/mq4hzAM.png | ||
+ | |||
Line 138: | Line 106: | ||
[[File:BlenderBIM ViewExportOptions 01.JPG|frame|center|View export options]] | [[File:BlenderBIM ViewExportOptions 01.JPG|frame|center|View export options]] | ||
− | |||
− | + | = Settings in Blender Preferences - Add-ons= | |
− | + | * SVG Command: | |
− | + | ** Windows Example: <code> [[[['C:\\Program Files\\Inkscape\\bin\\inkscape.exe', path]]]] </code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= See also= | = See also= | ||
* [[Getting_started_with_2D_CAD_drafting]] | * [[Getting_started_with_2D_CAD_drafting]] | ||
− | |||
− | |||
− | |||
=External Resources= | =External Resources= |