Transposing and rotating G Code

Talk about all things CNC
DRobs86
Posts: 148
Joined: Fri Jun 05, 2015 4:19 am

Transposing and rotating G Code

Post by DRobs86 » Thu May 05, 2016 2:49 am

I often have the need to rotate G code in order to fit a random part in what I have left of a piece of stock. This is not planned in advance, or else I would nest it prior to my CAM work. Is there anything out there that reliably rotates an existing G Code file. I would be fine with a simple transposition of X to Y. Scaling would be nice too. I have found this:
https://sourceforge.net/projects/gcodetransposer/ .... but it looks to be out of active development and is written in Python. I usually find that I can write my own program by the time I can get one of these sourceforge/github hosted python programs to run.

Any recommendations?

WillAdams
Posts: 8608
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: Transposing and rotating G Code

Post by WillAdams » Thu May 05, 2016 3:19 am

Shapeoko 3XL #0006 w/ Carbide Compact Router w/0.125″ and ¼″ Carbide 3D precision collets

DRobs86
Posts: 148
Joined: Fri Jun 05, 2015 4:19 am

Re: Transposing and rotating G Code

Post by DRobs86 » Thu May 05, 2016 3:52 am

Excellent. Thanks. I should have checked thebwiki first.

lxkhn
Posts: 16
Joined: Wed Apr 06, 2016 2:43 pm

Re: Transposing and rotating G Code

Post by lxkhn » Thu May 05, 2016 6:50 pm

DRobs86 wrote:Excellent. Thanks. I should have checked thebwiki first.

It's ok 99% of his day is posting wiki links anyway. ;)

PsyKo
Posts: 430
Joined: Thu Aug 30, 2012 8:42 pm
Location: France

Re: Transposing and rotating G Code

Post by PsyKo » Fri May 13, 2016 5:51 pm

DRobs86 wrote:I often have the need to rotate G code in order to fit a random part in what I have left of a piece of stock. This is not planned in advance, or else I would nest it prior to my CAM work. Is there anything out there that reliably rotates an existing G Code file. I would be fine with a simple transposition of X to Y. Scaling would be nice too. I have found this:
https://sourceforge.net/projects/gcodetransposer/ .... but it looks to be out of active development and is written in Python. I usually find that I can write my own program by the time I can get one of these sourceforge/github hosted python programs to run.

Any recommendations?
The latest version of Goko allows such modification. The description can be found here : http://www.shapeoko.com/forum/viewtopic ... =10#p63689
Shapeoko #736
Kress 800, Z Axis upgrade, dual Y, 600mm X&Y rails, metal spacers and V Wheels, home switches, 4th axis
Goko - Free CNC Control Software - http://www.shapeoko.com/forum/viewtopic ... 380#p44380

DRobs86
Posts: 148
Joined: Fri Jun 05, 2015 4:19 am

Re: Transposing and rotating G Code

Post by DRobs86 » Sat May 14, 2016 1:05 pm

Thanks for the tip on Goko. I downloaded the 64 bit version for my 64 bit Windows 10. At first I got an error 13 and fixed that by deleting a pointer variable per a tip on stack exchange. Now I get a message that a JRE or JDK must be available to run Goko. For what it's worth, other Java apps still work.

Do I need to DL eclipse? A JDK?

PsyKo
Posts: 430
Joined: Thu Aug 30, 2012 8:42 pm
Location: France

Re: Transposing and rotating G Code

Post by PsyKo » Sat May 14, 2016 2:39 pm

Hello,

What version of Java do you have ?
A simple JRE (at least 1.7) should be enough.

You should download the version matching your JRE and not necessarly the OS. If you have a 32bit JRE, then you should download the 32 bit version.
I think it's possible to have both 32 and 64bits Java on 64bit OS.

Let's me know if you have a problem.
Shapeoko #736
Kress 800, Z Axis upgrade, dual Y, 600mm X&Y rails, metal spacers and V Wheels, home switches, 4th axis
Goko - Free CNC Control Software - http://www.shapeoko.com/forum/viewtopic ... 380#p44380

PsyKo
Posts: 430
Joined: Thu Aug 30, 2012 8:42 pm
Location: France

Re: Transposing and rotating G Code

Post by PsyKo » Mon May 16, 2016 8:51 pm

DRobs86 wrote:Thanks for the tip on Goko. I downloaded the 64 bit version for my 64 bit Windows 10. At first I got an error 13 and fixed that by deleting a pointer variable per a tip on stack exchange. Now I get a message that a JRE or JDK must be available to run Goko. For what it's worth, other Java apps still work.

Do I need to DL eclipse? A JDK?
Any update on the subject ? Did you manage to get it to work ?
Shapeoko #736
Kress 800, Z Axis upgrade, dual Y, 600mm X&Y rails, metal spacers and V Wheels, home switches, 4th axis
Goko - Free CNC Control Software - http://www.shapeoko.com/forum/viewtopic ... 380#p44380

DRobs86
Posts: 148
Joined: Fri Jun 05, 2015 4:19 am

Re: Transposing and rotating G Code

Post by DRobs86 » Mon May 16, 2016 10:02 pm

Thanks for following up. I havent had tine to do any in depth investigating, but I am running x86 version of JRE 8.92. In fact, I recently upgraded to it.

The error persists. For what it is worth, I am able to run other java applications such as UGS.

Thanks again for checking in.

PsyKo
Posts: 430
Joined: Thu Aug 30, 2012 8:42 pm
Location: France

Re: Transposing and rotating G Code

Post by PsyKo » Tue May 17, 2016 6:52 am

DRobs86 wrote: I am running x86 version of JRE 8.92. In fact, I recently upgraded to it.
Did you download the x86 version of Goko as well ?
Shapeoko #736
Kress 800, Z Axis upgrade, dual Y, 600mm X&Y rails, metal spacers and V Wheels, home switches, 4th axis
Goko - Free CNC Control Software - http://www.shapeoko.com/forum/viewtopic ... 380#p44380

Post Reply