Quantcast

Include Filename as Variable in Drawing

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Include Filename as Variable in Drawing

Peter Schürch
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


------------------------------------------------------------------------------
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.clktrk
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Include Filename as Variable in Drawing

alvinpenner
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 Pennertestname.svg
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Include Filename as Variable in Drawing

Peter Schürch
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:[hidden email]]
Gesendet: Freitag, 6. September 2013 12:41
An: [hidden email]
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-tp4967841p4967843.html
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.clktrk
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user


------------------------------------------------------------------------------
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.clktrk
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Include Filename as Variable in Drawing

Donn Ingle

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


------------------------------------------------------------------------------
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.clktrk
_______________________________________________
Inkscape-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
Loading...