Page 1 of 1

Vector Drawing Library question

Posted: Sun Jan 10, 2016 1:33 pm
by MCP
Hi all,
I really like the vector drawing functions but I'm wondering how I can load/save my vector drawings as presumably an .svg file? There doesn't seem to be an obvious way to do this in the command set given. Any help on this would be appreciated. Thanks.

PS: Sorry if this question has been asked before. I couldn't find anything on the forum search.

Re: Vector Drawing Library question

Posted: Sun Jan 10, 2016 1:45 pm
by wilbert
For Linux, there's SvgVectorOutput(Filename$, Width.d, Height.d [, Unit])
Unfortunately this isn't available for Windows and OSX.

Re: Vector Drawing Library question

Posted: Sun Jan 10, 2016 2:08 pm
by MCP
Yes I'm using Windows. Sorry I forgot to mention that. Looks like I'm stuck then. Thanks for you reply.

Re: Vector Drawing Library question

Posted: Sun Jan 10, 2016 2:34 pm
by infratec
Not a full stuck :mrgreen:

http://www.purebasic.fr/english/viewtop ... 12&t=40540

But I don't know how easy it is to redraw everything.

Bernd

Re: Vector Drawing Library question

Posted: Sun Jan 10, 2016 4:26 pm
by MCP
Thanks, I'll have a look at that!

Re: Vector Drawing Library question

Posted: Sun Jan 10, 2016 5:57 pm
by Hadrianus
I just store every line, piece of text, etc in a linked list (position, line thickness, color, etc). And I save all the elements in this linked list in a common file. When I want to continue my drawing I simply open the file and let the computer redraw first. I think Autocad works also the same like this.

Re: Vector Drawing Library question

Posted: Mon Jan 11, 2016 9:18 am
by MCP
Hadrianus wrote:I just store every line, piece of text, etc in a linked list (position, line thickness, color, etc). And I save all the elements in this linked list in a common file. When I want to continue my drawing I simply open the file and let the computer redraw first. I think Autocad works also the same like this.
I was thinking along the same lines. Just store everything in a list making sure to preserve hierarchy and save it to a file. It might be possible to import/export simple svg files looking at the code infratec provided a link for. Thanks for all your help. I've at least got something I can work with :D

Re: Vector Drawing Library question

Posted: Thu Jan 14, 2016 2:03 am
by Seymour Clufley
Sorry to do this, but PureSVG can help.