

This should be the same name as the file name chosen in Inkscape in order to load the model in an IDE like OpenModelica to examine the results.\n\t-strict=True|False (shorthand -s True|False) if true, non-translatable elements in the SVG document are treated as errors.

This must be the first parameter.\n\t-modelname=SomeString (shorthand -m SomeString) determines the model name that should be written to the Modelica output. It can take the following parameters:\n\n\n\tsvgfile is the filename of the SVG document that should be translated. This file is called from within Inkscape to print the resulting Modelica code on stdout. The correct folder is:\n\n\n\tFor Windows: %userprofile%\\AppData\\Roaming\\inkscape\\extensions\n\tFor Linux: ~/.config/inkscape/extensions/\n\n\nScript parameters\n\nThe main script of MoNK is found in src/svg2modelica.py. The goal is to allow drawing icons for Modelica classes in Inkscape that can be used in Modelica with minimal manual effort.\n\nThis project supersedes the Modelica vector graphics editor MoVE in the Modelica Tool Ensemble MoTE.\n\nInstallation\n\nIf Python is installed on your machine, you can just run\n\npython setup.py install_ink\n\nfrom inside the main folder of this project and the script will automatically locate your Inkscape extension folder and place the necessary files in that folder.\n\nAlternatively, you can download a release distribution from GitHub, which only contains the files that need to be put in the Inkscape extension folder. Therefore, MoNK implements functionality on a best-effort basis, including the features that are most often used in Inkscape and in Modelica. At the same time, Modelica includes high-level concepts such as fill patterns, which cannot be easily parsed from an SVG file. Not every SVG image can be translated to a Modelica file.


menu.\n\nThe SVG standard is much more expressive than Modelica annotations. Once installed it adds the new export format 'Modelica annotation (*.mo)' to the File -> Save as. "description": "MoNK - A MOdelica iNKscape extension\n\nMoNK is a extension for Inkscape to produce graphical annotation strings for Modelica from an Inkscape SVG image.
