Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Vector Drawing (?) code
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  20 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Scott B  
View profile  
 More options Aug 20 2012, 12:13 am
From: Scott B <solar.sen...@gmail.com>
Date: Sun, 19 Aug 2012 21:13:57 -0700 (PDT)
Local: Mon, Aug 20 2012 12:13 am
Subject: Vector Drawing (?) code

If I were to say:

M100.0,0.0
L-5.0,5.0
L-5.0,-5.0
L0.0,-5.0
Z

Does this mean anything to anyone? Is this some kind of standard vector
graphic format?

The code is used in our Graphics program to generate shapes, but it gets
very tedious to do manually, so I'm hoping there is some way of generating
it from a CAD drawing or something?

BTW,
M = Move
L= Line
H = Horizontal Line
V = Vertical Line
C = Cubic Curve
..
Z = Close


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Sprinkmeier  
View profile  
 More options Aug 20 2012, 12:18 am
From: Thomas Sprinkmeier <thomas.sprinkme...@gmail.com>
Date: Mon, 20 Aug 2012 13:48:39 +0930
Local: Mon, Aug 20 2012 12:18 am
Subject: Re: [HACK-ADL] Vector Drawing (?) code
On 20 August 2012 13:43, Scott B <solar.sen...@gmail.com> wrote:

> If I were to say:

> M100.0,0.0
> L-5.0,5.0
> L-5.0,-5.0
> L0.0,-5.0
> Z

> Does this mean anything to anyone? Is this some kind of standard vector
> graphic format?

> The code is used in our Graphics program to generate shapes, but it gets
> very tedious to do manually, so I'm hoping there is some way of generating
> it from a CAD drawing or something?

Last time I had to do something like that I used inkscape and perl.

draw in inkscape, save as SVG, mangle in
perl/python/your-favourite-scripting-language

I needed a non-rectangular windows border in Java, which you do by
using drawto/lineto/moveto type commands.

Poking around the SVG I recognised that these commands were all there,
a bit of munging with perl and voila!

Thomas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 12:19 am
From: Scott B <solar.sen...@gmail.com>
Date: Sun, 19 Aug 2012 21:19:55 -0700 (PDT)
Local: Mon, Aug 20 2012 12:19 am
Subject: Re: Vector Drawing (?) code

Ah, looks like its SVG

http://www.w3.org/TR/SVG/paths.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Schulz  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 1:30 am
From: Paul Schulz <p...@mawsonlakes.org>
Date: Mon, 20 Aug 2012 15:00:05 +0930
Local: Mon, Aug 20 2012 1:30 am
Subject: Re: [HACK-ADL] Vector Drawing (?) code
I am (vaguely) reminded of a HP plotter format. I'm surprised that
there isn't a 'pen-up/pen-down' command in there, although I may be
wrong, it's been a very long time since I wrote and code (GWBASIC) to
drive a plotter.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 1:39 am
From: Scott B <solar.sen...@gmail.com>
Date: Sun, 19 Aug 2012 22:39:33 -0700 (PDT)
Local: Mon, Aug 20 2012 1:39 am
Subject: Re: Vector Drawing (?) code

hmm, downloaded a SVG converter, but it has come out in a different format:

  <title>Export to SVG</title>
  <desc>Generated by CADtoSVG Version 1.0: 20/08/2012 15:03:27</desc>
<line x1="6554" y1="6554" x2="11796" y2="1311" style="stroke:#000000;
fill:None;"/>
<line x1="11796" y1="1311" x2="14942" y2="4456" style="stroke:#000000;
fill:None;"/>
<line x1="14942" y1="4456" x2="18088" y2="1311" style="stroke:#000000;
fill:None;"/>
<line x1="18088" y1="1311" x2="21233" y2="4456" style="stroke:#000000;
fill:None;"/>
<line x1="21233" y1="4456" x2="24379" y2="1311" style="stroke:#000000;
fill:None;"/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Wheare  
View profile  
 More options Aug 20 2012, 1:42 am
From: Jonathan Wheare <jonathanwhe...@gmail.com>
Date: Mon, 20 Aug 2012 15:12:34 +0930
Local: Mon, Aug 20 2012 1:42 am
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code
Are there any magic numbers or codes at the start of the file?

J.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 1:49 am
From: Scott B <solar.sen...@gmail.com>
Date: Sun, 19 Aug 2012 22:49:05 -0700 (PDT)
Local: Mon, Aug 20 2012 1:49 am
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

here it is from the beginning:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 65535 65535" >
  <title>Export to SVG</title>
  <desc>Generated by CADtoSVG Version 1.0: 20/08/2012 15:03:27</desc>
<line x1="6554" y1="6554" x2="11796" y2="1311" style="stroke:#000000;
fill:None;"/>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Pickles  
View profile  
 More options Aug 20 2012, 8:58 pm
From: Steven Pickles <thatpix...@gmail.com>
Date: Tue, 21 Aug 2012 10:28:21 +0930
Local: Mon, Aug 20 2012 8:58 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

if you export a path from gimp, it comes out in a format a bit more
reminiscent of this. its what i parse at the moment (just M commands) to
make my drilling script for the modela.

pix

On 20 August 2012 13:49, Scott B <solar.sen...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 9:10 pm
From: Scott B <solar.sen...@gmail.com>
Date: Mon, 20 Aug 2012 18:10:59 -0700 (PDT)
Local: Mon, Aug 20 2012 9:10 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

ooh, I have gimp here somewhere I'll give it a go.

I must do a demo of the Niagara software at a meeting one night - I'm sure
you guys would have all sorts of uses for it - and blow my mind with what
can be done with it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 9:42 pm
From: Scott B <solar.sen...@gmail.com>
Date: Mon, 20 Aug 2012 18:42:22 -0700 (PDT)
Local: Mon, Aug 20 2012 9:42 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

still looking for the export to path option in gimp... your not going to
make me read the instructions are you? ;)

interestingly the hacker space logo .svg is in the correct format for me to
use.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Schulz  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 10:02 pm
From: Paul Schulz <pschul...@gmail.com>
Date: Tue, 21 Aug 2012 11:32:50 +0930
Local: Mon, Aug 20 2012 10:02 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

Try inkscape. It has a veriety of svg / vector export options.
On Aug 21, 2012 11:12 AM, "Scott B" <solar.sen...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steven Pickles  
View profile  
 More options Aug 20 2012, 10:09 pm
From: Steven Pickles <thatpix...@gmail.com>
Date: Tue, 21 Aug 2012 11:39:48 +0930
Local: Mon, Aug 20 2012 10:09 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

Not export _to_ path. Click on the path tool and draw a path. Then in the
"Paths" list (probably one of the tabs next to your layer list) right click
on the current path (which got automatically created when you started using
the path tool) and save or export it (can't remember the terminology right
now). It doesn't give any indication that the saved path will be SVG, but
it will be.

pix
On Aug 21, 2012 11:12 AM, "Scott B" <solar.sen...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 10:30 pm
From: Scott B <solar.sen...@gmail.com>
Date: Mon, 20 Aug 2012 19:30:41 -0700 (PDT)
Local: Mon, Aug 20 2012 10:30 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

inkscape is looking promising, it has an XML editor that will show me each
path and the code for it.... however it does every segment as a separate
path, I guess there is a join option here somewhere so that I can turn a
heap of segments in to a single path?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 10:37 pm
From: Scott B <solar.sen...@gmail.com>
Date: Mon, 20 Aug 2012 19:37:28 -0700 (PDT)
Local: Mon, Aug 20 2012 10:37 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

Found it, the old combine button (or ctrl+L) makes it in to a single path.

Looks like I can now draw something in AutoCAD, export it to a DXF, import
to Inkscape, combine to a single path, view the XML, copy and paste in to
the Niagara XML file - all sounds so easy!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tamsyn Michael  
View profile   Translate to Translated (View Original)
 More options Aug 20 2012, 11:19 pm
From: Tamsyn Michael <tamsyn.j.mich...@gmail.com>
Date: Tue, 21 Aug 2012 12:49:11 +0930
Local: Mon, Aug 20 2012 11:19 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

> Looks like I can now draw something in AutoCAD, export it to a DXF, import
> to Inkscape, combine to a single path, view the XML, copy and paste in to
> the Niagara XML file - all sounds so easy!

> ...

o.O

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 20 2012, 11:37 pm
From: Scott B <solar.sen...@gmail.com>
Date: Mon, 20 Aug 2012 20:37:57 -0700 (PDT)
Local: Mon, Aug 20 2012 11:37 pm
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

not quite there yet...

it appears inkscape won't join the segments in to one singular fluid path,
it jumbles up the order with a heap of move commands in between - which
screws things up when the graphics package does the 'fill' at the end, as I
end up with lots of little closed segments rather than one big one.

maybe its a rounding error? can I set it to snap segments together if they
are within say 0.01 of each other? rather than checking them to 5 decimal
places?

Or any other thoughts?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Wintulich  
View profile  
 More options Aug 21 2012, 12:24 am
From: Peter Wintulich <pe...@voicetronix.com.au>
Date: Tue, 21 Aug 2012 13:54:38 +0930
Local: Tues, Aug 21 2012 12:24 am
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code

Hello Scott,

It may be best just to export a dxf file and directly process it
contents in a small converter program.

In Acad you would need to use the poly line command to create the outline.

Somewhere at home I have a book on the DXF format.
Years ago I was creating PCB designs in it and we then ran a basic
program to produce Gerber files.
The DXF format has got a bit more complex since then but not unusable.

Another option that will work very well is setup an old plotter driver.
Use save to file.
The old hp and huston plotters code was fairly easy to parse. But the
vectors may then need reordering.

Regards Peter W.

On 21/08/12 13:07, Scott B wrote:

--

Peter Wintulich

Voicetronix Pty. Ltd.
Level 1, 246 Pulteney Street,
ADELAIDE  5000
South Australia
AUSTRALIA
+61 8 8232 9112


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Hodge at GMail  
View profile   Translate to Translated (View Original)
 More options Aug 21 2012, 1:21 am
From: Sam Hodge at GMail <sam.ho...@gmail.com>
Date: Tue, 21 Aug 2012 14:51:12 +0930
Local: Tues, Aug 21 2012 1:21 am
Subject: Re: [HACK-ADL] Re: Vector Drawing (?) code
Writing SVG via scripting isnt that hard:

I wrote a program in Python to do halftoning and write the output to
SVG, which I then converted to PDF for printing.

http://www.hodge.net.au/sam/blog/?p=78

sam

On Tue, Aug 21, 2012 at 1:54 PM, Peter Wintulich


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
sighmon  
View profile  
 More options Aug 21 2012, 7:41 pm
From: sighmon <simon.loff...@gmail.com>
Date: Tue, 21 Aug 2012 16:41:50 -0700 (PDT)
Local: Tues, Aug 21 2012 7:41 pm
Subject: Re: Vector Drawing (?) code
Scott: for your interest, I drew the original hackerspace logo in
Adobe Illustrator.. so happy to let you have a play at hackerspace
tonight.

si.

On Aug 21, 2:21 pm, Sam Hodge at GMail <sam.ho...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott B  
View profile  
 More options Aug 21 2012, 8:41 pm
From: Scott B <solar.sen...@gmail.com>
Date: Tue, 21 Aug 2012 17:41:05 -0700 (PDT)
Local: Tues, Aug 21 2012 8:41 pm
Subject: Re: Vector Drawing (?) code

yeah hoping to do a bit more experimenting tonight.

I have found that if I draw something in Inkscape it works properly (the
XML file contains a single path with no excess moves, which I can cut and
paste straight in to Niagara). It just doesn't handle imported paths from
AutoCAD well yet - no doubt there will be a function there somewhere to
auto-join and re-order which would work.

Will be interesting to see if Illustrator handles it any better.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »