Include Filename as Variable in Drawing
Hi Is it possible to include the filename as a variable or field in an inkscape drawing? Thanks, Peter
-- Inkscape 0.48, Windows 7 Meier und Partner AG, Switzerland, www.meierpartner.ch
attached is an svg file made by Inkscape 0.48.4. If you open this with a text editor, then you will see that one of the lines in the header says: sodipodi:docname="testname.svg" You can also see this name inside Inkscape by going to Edit->XML Editor and clicking on the top line, which looks like <svg:svg id = "x">
hth, Alvin Penner testname.svg http://inkscape.13.x6.nabble.com/file/n4967843/testname.svg
-- View this message in context: http://inkscape.13.x6.nabble.com/Include-Filename-as-Variable-in-Drawing-tp4... Sent from the Inkscape - User mailing list archive at Nabble.com.
Thanks, Alvin, but how do I read the value of an XML-variable so it can be displayed in the drawing as a dynamic field (e.g. like fields in Word).
[we use Inkscape for drawings in our reports, so we would like to have the filename on the drawings so they can be located on the server easily]
Peter
-----Ursprüngliche Nachricht----- Von: alvinpenner [mailto:penner@...2467...] Gesendet: Freitag, 6. September 2013 12:41 An: inkscape-user@lists.sourceforge.net Betreff: Re: [Inkscape-user] Include Filename as Variable in Drawing
attached is an svg file made by Inkscape 0.48.4. If you open this with a text editor, then you will see that one of the lines in the header says: sodipodi:docname="testname.svg" You can also see this name inside Inkscape by going to Edit->XML Editor and clicking on the top line, which looks like <svg:svg id = "x">
hth, Alvin Penner testname.svg http://inkscape.13.x6.nabble.com/file/n4967843/testname.svg
-- View this message in context: http://inkscape.13.x6.nabble.com/Include-Filename-as-Variable-in-Drawing-tp4... Sent from the Inkscape - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clk... _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Two ideas: 1. Pre-process the svg files: use sed or python or wtvr and replace a marker string with the file name, such that it will appear as a text thingy when svg is viewed. 2. Similar to 1, but use python in inkscape (extension) to manage this variable replacement dynamically.
/d
participants (3)
-
alvinpenner
-
Donn Ingle
-
Peter Schürch