Svg Namespace/fr

Dans les documents SVG exportés par le Module de dessin de FreeCAD et utilisés comme template (modèle) de page, plusieurs attributs personnalisés peuvent être utilisés, à l'origine pour un usage interne de FreeCAD, mais pourraient aussi être utilisés par d'autres applications FreeCAD à l'avenir. Tous ces attributs utilisent le préfixe freecad:namespaces. L'URL Namespaces, défini dans le document SVG fait référence à cette page.

Usage
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:

Additional information for Working space and Title block may be added, and is defined on the Drawing templates page.

freecad:EditableText
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:

freecad:basepoint1
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:

freecad:basepoint2
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

freecad:dimpoint
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

Example of code freecad:EditableText
This example is taken from a cartridge to a sheet A3_Landscape

Explanations
Beginning of the framework Data on the framework Beginning of the text block All the information about the text that will be displayed Coordinates and identity where the text will appear Here AuthorName is the var managed by freecad:editable who saves the string to change that will be displayed Coordinates and identity of the text that is displayed by default and   means the end of the block text Other blocks texts and end  the framework grouping text blocks

It is possible after having worked the Inkscape SVG file as the file no longer works, it is possible that information has gone missing.

Then check that the edit text is not modified

Example :
 * editable = "AuthorName"
 * replace by freecad:editable = "AuthorName"

Other attributes availlables
See Drawing_templates