Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: Graham Waterworth on April 08, 2007, 07:56:04 PM

Title: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on April 08, 2007, 07:56:04 PM
Hi All,

here is a small .exe program for converting G-Code from mm to Inches and Inches to mm, it will also scale to any size you require, with in reason.

The program needs no installing, just double click to run it.

Click 'input file' to select the source file

Click 'output file' and enter a new file name, you can't read and write to the same file name.

Select conversion options.

Click convert.

That's all there is to it.

Try it and see if it works for you.

There is a later version of this program higher within this thread that has no limit to the number of lines of g-code it will convert, this version has a line limit of 32000.


Link to Later version :- http://www.machsupport.com/forum/index.php/topic,2893.msg39920.html#msg39920
Regards

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Chaoticone on April 08, 2007, 08:12:58 PM
Hats off to Graham for such a nice contribution. Some of you folks will find this very useful if your code generating is limited to Imperial or metric. Men like Graham are one of the main reasons this forum is so nice.

Thanks Graham

Brett
Title: Re: G-Code scaling program, mm to Inches and back
Post by: ynneb on April 08, 2007, 11:06:28 PM
Thanks Graham, You're more than just a pretty face.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: gabi68 on April 09, 2007, 03:30:46 AM
Hi,

Archive is dead. Winrar don't open it. I me or something else?

TIA
GB
Title: Re: G-Code scaling program, mm to Inches and back
Post by: ynneb on April 09, 2007, 03:55:03 AM
Try downloading it again. Seems to work fine for me.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: gabi68 on April 09, 2007, 04:06:06 PM
Try downloading it again. Seems to work fine for me.

Thank's Benny - the .exe file work now.
GB
Title: Re: G-Code scaling program, mm to Inches and back
Post by: rustamd on September 25, 2007, 09:41:02 PM
why does it try to install TurboTax ItsDecductible 2006 when i go to open this thing?
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on September 26, 2007, 04:44:21 AM
No idea, it worked for 450+ other people.

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: rustamd on September 26, 2007, 10:29:42 AM
hmm, thanks for app anyway, will try to get it working today...
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on September 26, 2007, 11:49:53 AM
I have just downloaded both version and they both work fine here.

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: RobWilson on January 11, 2008, 07:08:56 PM
Thanks Graham
works fine for me
Rob
Title: Re: G-Code scaling program, mm to Inches and back
Post by: gabi68 on March 02, 2008, 09:17:34 AM
Hi Graham,

I try you're little software but I receive a constant error "Run time error '6': Overflow. Here it is what I am doing. I have .dxf a file in inch. I import that file in Rhino then I change units in Rhino from inche's to mm. I import that file in LCam - process. Save. Try to convert back in inche's and dang that error came up. Why? What I am doing wrong? Please help me.

TIA
Gabi
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on March 02, 2008, 01:14:05 PM
Hi Gabi,

I have not had that error reported before, post the file you are trying to convert and let me have a look.

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: gabi68 on March 02, 2008, 01:20:39 PM
Hi Graham,

File it is a little large. I'll will post a archive. Please look at it and advice what do to.

Thank you
Gabi
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on March 02, 2008, 02:31:52 PM
Here is the later version of the program, try this and let me know how you get on.

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: gabi68 on March 02, 2008, 02:38:04 PM
Hi Graham,

That new version do the job nicely.

Thank you
Gabi
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Tyler on March 14, 2008, 08:41:10 PM
Quick question, what does

"Component 'comdlg32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid."

mean?
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on March 15, 2008, 06:22:14 AM
You have a missing ActiveX file on your system, is it XP and up to date?

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Tyler on March 17, 2008, 03:02:47 PM
I have run the update but still receive the same error. Is there anything that could conflict with this program running?

My PC is installed in "normal PC" mode, and just about everything is changed according to the XP Optimization file on ArtSoft's website. I'm not entirely sure why neither of the versions you've posted don't work on my system.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on March 17, 2008, 03:48:04 PM
Sorry, no idea, have you tried it on another computer, it seems to work for most people.

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Tyler on March 17, 2008, 04:22:11 PM
Maybe I can try reformatting the computer used for controlling the CNC machine. It seems to work with my desktop.

Thanks Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: W.Jansen on July 22, 2008, 03:37:35 PM
Hi Graham

Your program works perfect for me, thanks very mutch.
Just out off curiosity, what is the difference between the two versions?

Greetings:
Willem

Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on July 22, 2008, 07:01:29 PM
Hi Willem,

thank you for your comments, the only difference is the earlier one was limited to 32000 lines of code.

Graham.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Tweakie.CNC on December 19, 2008, 09:15:36 AM
Thanks Graham, nifty little program. I have used it a couple of times now and it was brilliant.

Regards, Tweakie.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: BClemens on February 24, 2009, 08:34:26 AM
Thank you Graham, very useful program and also even for basic renumbering.

Bill C.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: fever16 on February 10, 2010, 01:03:44 PM
nice program,simple to operate.Thanks

i likes its scaling feature.and it would be much better if we could control the z depth separately.
i used custom scale as 10,so my X-Y values become 10 times larger and also made Z depth to 10 times.
Title: Re: G-Code scaling program, mm to Inches and back
Post by: BobWarfield on April 05, 2010, 04:43:00 PM
Handy utility!

Cheers,

BW
Title: Re: G-Code scaling program, mm to Inches and back
Post by: woodguy7777 on June 20, 2010, 11:12:18 AM
[flash=200,200]I downloaded file and everything work as far as the conversion goes.
the problem i have is when i tried to run the file.
[i tried an aircut   ]  the file size has been reduced to a faction of the original size.
tried on two computers same problem.
enclosed is both files  before and after.
thanks
paul
Title: Re: G-Code scaling program, mm to Inches and back
Post by: woodguy7777 on June 20, 2010, 12:05:08 PM
My above post is a bit misleading  i was sent a dxf that was made in mm   i then took that file into vcarvepro
and made a cut file in mm.
then use the converted to turn it into an inch file.
an easier way to go is if i was able to change the dxf mm file into a dxf inch file.
is that possible?
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on June 20, 2010, 04:05:07 PM
The file size has reduced by about 3600 characters this is because when you convert a mm size say 127.000 to inches you get 5. a saving of 5 characters multiply this by hundreds of conversions and the file shrinks by a large amount.

Have you found a fault in the converted file?

You can convert a DXF file in mm to inches by scaling it by 1:25.4th (0.03937) the metric cam system will think its a very small part but scale the tools too and the output will be inches, you will just need to change the G21 to G20.

Graham
Title: Re: G-Code scaling program, mm to Inches and back
Post by: cue on January 08, 2013, 09:14:37 AM
I have problem using the wizards cannot find the code after making it in the wizard?
Thanks
Title: Re: G-Code scaling program, mm to Inches and back
Post by: jstanthr on January 29, 2013, 05:45:03 AM
Any way to get it to do .nc Mach3 files?
Title: Re: G-Code scaling program, mm to Inches and back
Post by: Graham Waterworth on January 29, 2013, 06:49:40 AM
Change the extension from .NC to .TAP

Graham