As per as my need,I must add in main . here i can get only one object with following code,How to get all screen object X,Y coordinated.
FILE *fp; fp=fopen("D:\Data.txt","w"); SPDocument *doc=inkscape_active_document();
if(doc == NULL ) {
return true; } Inkscape::XML::Node *root = doc->getReprRoot(); Inkscape::XML::Node *path = sp_repr_lookup_name(root, "svg:path", -1); // if ( path == NULL ) {
doc->doUnref(); return true;
} gchar const *svgd = path->attribute("d"); fprintf(fp,"PATH2: %s\n", svgd);
john cliff-2 wrote:
Your easiest way is probably an extension rather than in the main code. I wrote one to export nodal xy co-ords that is somewhere on inkscapeforum.
Sent from my iPhone
On 6 Jul 2011, at 08:38, mahendra1 <mahendra.gajera@...2640...> wrote:
Hello
Thanks your reply
Actually I want to customize the Inkscape. I add function WritePoints() in SPDesktop.cpp. Here i wants to get each object's X,Y coordinate and write in my test.txt file. Please suggest the way for achieve for this things.
Thanks
mahendra1 wrote:
Hi All
Here i upload save file of two separate line. Now I want read the position each line via programmatically, which are as BOLD in following .svg file. Please suggest the way get the position.Is other any document or example for that ,Please suggest me.
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1"> <path
style="fill:none;stroke:#000000;stroke-width:0.40383452px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 157.14285,315.21933 397.14286,-0.46595" id="path12" inkscape:connector-curvature="0" /> <path
style="fill:none;stroke:#000000;stroke-width:0.88473207px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 162.85714,327.26862 385.71428,2.23643" id="path14" inkscape:connector-curvature="0" />
</g>
Thanks
-- View this message in context: http://old.nabble.com/Read-XY--cordinate-from-.SVG-file-tp31909431p32002913.... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel