But using GUI to export svg can have dimensions information. How to use script in console mode without running freecad GUI to export svg the same as GUI exported svg ?
Code: Select all
TechDraw.viewPartAsSvg(App.activeDocument().View)
Code: Select all
'<g fill="none" stroke="#000000" stroke-opacity="1" stroke-width="0.7" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">\n<path id= "1" d=" M 190.5 78.5772 L -190.5 78.5772 " />\n<path id= "2" d=" M 190.5 -70.7991 L -190.5 -70.7991 " />\n<path id= "3" d=" M 190.5 78.5772 L 190.5 -70.7991 " />\n<path id= "4" d=" M -190.5 78.5772 L -190.5 -70.7991 " />\n<path id= "5" d=" M 190.5 -78.5772 L -190.5 -78.5772 " />\n<path id= "6" d=" M 190.5 -78.5772 L 190.5 -70.7991 " />\n<path id= "7" d=" M -190.5 -78.5772 L -190.5 -70.7991 " />\n</g>\n'
Code: Select all
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Chinese/China (zh_CN)