Development of the [[Drawing Workbench]] stopped in FreeCAD 0.16, and the new [[TechDraw Workbench]] aiming to replace it was introduced in v0.17. Both workbenches are still provided in v0.17, but the Drawing Workbench may be removed in future releases.
In the SVG documents exported by FreeCAD's Drawing Workbench and used as page templates, several custom attributes can be used, originally for FreeCAD's own internal use, but could also be used by other FreeCAD-aware applications in the future. These attributes all use the freecad: namespace prefix. The namespace URL defined in those SVG documents refers to this page.
One pixel = one millimeter.
You must insert, somewhere inside your svg code, where you want the contents of the drawing to appear (for example at the end of the file, just before the last '''
''' tag), the following line:
xml
xml
<svg xmlns:freecad="http://www.freecadweb.org/wiki/index.php?title=Svg_Namespace"
In order to enable up to scale printing, the real word size has to be given in the width and height attributes of the SVG-Tag. The size of the document in user units, (px), has to be given in the viewBox attribute.
The following is to be formatted like the example below where:
- xxx = pixel width
- yyy = pixel height
xml width="xxxmm" height="yyymm" viewBox="0 0 xxx yyy"
Additional information for Working space and Title block may be added, and is defined on the Drawing templates page.
To use any of the freecad: attributes in your SVG documents, you must first define the freecad namespace as an attribute of the opening
tag:
Defines a text in a template that can be edited by FreeCAD.
Example:
xml This is a title
Defines the first point of a Draft Dimension object (represented as a group in a SVG document). This attribute is used when importing the SVG fragment in FreeCAD, in order to recreate the dimension object. The group contains paths and other graphical items to correctly render the dimension object in other SVG applications.
Example:
xml
Defines the second point of a Draft Dimension object (represented as a group in a SVG document). This attribute is used when importing the SVG fragment in FreeCAD, in order to recreate the dimension object. The group contains paths and other graphical items to correctly render the dimension object in other SVG applications.
Example: see freecad:basepoint1
Defines the point of a Draft Dimension object through which the dimension line passes. This attribute is used when importing the SVG fragment in FreeCAD, in order to recreate the dimension object. The group contains paths and other graphical items to correctly render the dimension object in other SVG applications.
Example: see freecad:basepoint1
This example is taken from a cartridge to a sheet A3_Landscape