CAD CAM EDM DRO - Yahoo Group Archive

Re: HPGL without arc commands=solution found!

Posted by thepcbmiller
on 2002-04-26 12:51:23 UTC
I have found a simple way to do this conversion! There is a shareware
utility hpglexp.exe (http://www.sfdesign.co.uk/hpglexp.htm) that
convert a hpgl file to more "simple" commands.

Original file:

SP1;
PA120,0;
PD;
AR220,-70,-144.70;
PA560,0;
PU;
PA0,0;
PD;
PA0,40;
PU;

Converted file:

IN;
PU120,0;
SP1;
PD127,19;
PD135,37;
PD146,54;
PD157,71;
PD170,86;
PD184,100;
PD200,113;
PD216,125;
PD234,135;
PD252,143;
PD271,150;
PD290,155;
PD310,159;
PD330,161;
PD350,161;
PD370,159;
PD390,155;
PD409,150;
PD428,143;
PD446,135;
PD464,125;
PD480,113;
PD496,100;
PD510,86;
PD523,71;
PD534,54;
PD545,37;
PD553,19;
PD560,0;
PU0,0;
PD0,40;
PU0,0;
SP0;
PG;


/Björn

--- In CAD_CAM_EDM_DRO@y..., "ballendo" <ballendo@y...> wrote:
> Bjorn,
>
> One way is to import the file into a program which does not output
AR
> commands. Like CorelDraw.Then output the HPGL format from this
> program. Or choose a different HPGL driver and re-output the file,
> using the program you originally used.
>
> Besides this you can use a CAD/CAM program to convert arcs to line
> segments. But you actually have two issues here. AR is Arc
Relative.
> PA is Plot Absolute. So not only are you changing from arcs to line
> segments, you are also changing the coordinates from relative to
> absolute... If PR (Plot Relative) commands are acceptable, then you
> are back to only one step.
>
> Finally, if you have lots of time, you can use SIN/COS and convert
> the entities manually! Don't REALLY DO this :-)
>
> Hope this helps,
>
> Ballendo
>
>
> --- In CAD_CAM_EDM_DRO@y..., "thepcbmiller" <andersson@t...> wrote:
> > Hi,
> >
> > I want to convert "arc" (AR) commands into plot positions (PA) in
a
> > hpgl file. How to do that ?
> >
> > /Thanks, Björn

Discussion Thread

thepcbmiller 2002-04-25 22:29:50 UTC HPGL without arc commands ballendo 2002-04-26 04:48:12 UTC Re: HPGL without arc commands thepcbmiller 2002-04-26 12:51:23 UTC Re: HPGL without arc commands=solution found! RC 2002-04-26 14:34:09 UTC Re: [CAD_CAM_EDM_DRO] Re: HPGL without arc commands=solution found!