Importare testo e geometria da Inkscape

From FreeCAD Documentation
Revision as of 20:48, 18 July 2016 by Renatorivo (talk | contribs) (Created page with "== Consigli generali per importare da Inkscape == * l'importatore SVG di FreeCAD non può gestire un file in formato SVG con una risoluzione superiore a 45 dpi, quindi control...")
Tutorial
Argomento
Importare testo e geometria da Inkscape
Livello di difficoltà
Base
Tempo di esecuzione
30 minuti
Autori
r-frank
Versione di FreeCAD
0.16.6704
Files di esempio
Vedere anche
Nessuno

Introduzione

Questo tutorial si propone di mostrare come importare in FreeCAD testo o geometria creata con Inkscape nel formato svg.
Per queste operazioni sono utilizzati Inkscape 0.91 e FreeCAD 0.16.6704 in Windows.

Consigli generali per importare da Inkscape

  • l'importatore SVG di FreeCAD non può gestire un file in formato SVG con una risoluzione superiore a 45 dpi, quindi controllare le impostazioni di Inkscape
  • se nella vista 3D in FreeCAD gli oggetti importati non appaiono molto lisci questo può dipendere dalle impostazioni di FreeCAD per la vista della forma.
    • in FreeCAD scegliere Edit Preferenze Part Design Visualizzazione della figura
    • per "Tessellazione", il valore della "Deviazione massima secondo il riquadro di delimitazione del modello" di default è "0,5 %"
    • impostando questo ad un valore inferiore si aumenta la levigatezza del modello nella vista 3D (e si usano più risorse del PC)
    • non utilizzare valori inferiori a "0,01 %", questo molto probabilmente blocca FreeCAD
    • in tal caso la cancellazione di "system.cfg" e "user.cfg" nella directory utente di FreeCAD risolve questo problema

Importing text from inkscape

  • after inserting text in inkscape (and perhaps applying effects like bending or something else to it) make sure to
    • select your text and choose Path Object to path
    • ungroup your objects
    • save as "Plain SVG (*.svg)" file format
  • open the file in FreeCAD, choosing the option "SVG as geometry (importSVG)"
  • a path object for each letter/number/sign will be created in the tree view
  • use draft upgrade on each path object to create faces
  • use pad or extrude on the faces to get solids
  • you can fuse your objects or use compound on them depending on your intended further work

Importing geometry from inkscape

Since inkscape and FreeCAD seem to have different approaches on how to apply dimensions on svg-object, the recommended workflow seems to be:

  • ungroup all objects in inkscape
  • select all objects in inkscape
  • apply a stroke style with a width of 0 mm (yes, that is zero millimeter) to all objects
  • save as "Inkscape SVG (*.svg)" or "Plain SVG (*.svg)" file format
  • open the file in FreeCAD, choosing the option "SVG as geometry (importSVG)"
  • the dimensions of the objects in inkscape and in FreeCAD should now be identical

Credits

Thanks to users "freecad-heini-1" and "herbk" for testing and providing valuable feedback.