Page 1 of 1

Unit Converter

PostPosted: Thu Sep 27, 2018 1:06 am
by Dan911
This plugin/Wizard will convert a Gcode file loaded in UCCNC from mm to inches or inches to mm.

Some new features were added by request, suggestions, and help from Vmax549....

Scaling - Will scale gcode file size smaller or larger by inputted scale factor.
Add Line numbering.

Using Scaling has no change to Z axis only X and Y. All UCCNC Gcode variables will remain the same unless G2 or G3, R for radius will be scaled to scale factor input. If I'm missing any other Gcode variables please let me know.

To use this wizard you need to create a button with button # 55555 or create a hot key with function # 55555 or use Multiple Macro button plugin that could be found in the Tool Box with instructions.

This plugin will NOT edit or make any changes to original Gcode file

There's a help button on interface with instructions how to use.

The attachment UC5.JPG is no longer available



UC5.JPG


Dan

Re: Unit Converter

PostPosted: Sun Sep 30, 2018 2:17 pm
by Dan911
Fixes....
Added all UCCNC Gcode variables.
Fixed variables that needed scaling using Scale conversion.
Fixed unhandled exception when Test Scale pressed and no Gcode file open.


Unit Converter6.zip

Re: Unit Converter

PostPosted: Sun Sep 30, 2018 10:39 pm
by Dan911
Vista seems very quirky and It's something I wouldn't attempt to address because most likely would need to be addressed on users end. Tested on WinXP 32 bit Win8.1 and Win10 64 bit without a glitch.

"G" code parameter will be written as is.
On mm and inch conversions Parameters X, Y, Z, I, J, K, F, R, Q, will be converted to chosen mm or inch conversion. Parameters M, S, P, T, H, L, will be written as is.

On Scale Factor conversion only Parameters X, Y, I, J, K will be converted to scale. R if on a G2 or G3 line. Rest will remain as original file.

Tested on Gcode generated from Alphacam, Aspire, Cambam 2D files. Worked well. Any suggestions for improvement or further development I'm always happy to oblige.

As always thanks for your input and help,
Dan

Re: Unit Converter

PostPosted: Sat Nov 03, 2018 2:35 am
by Dan911
I recently learned this plugin had problems in the newer test release versions so I fixed, Thanks Dezsoe!

I received a few request in the past if it was possible to give a specific size to scale to so I went ahead and updated to that also. Now how the scaling works is to give a size in X or Y and will scale the other in loaded g-code file in proportion. I updated help file also.

Instruction are the same, create a button or hotkey with #55555 or use the multiple button macro that could be found in toolbox.

The attachment Capture.JPG is no longer available


Capture.JPG

Re: Unit Converter

PostPosted: Sat Nov 03, 2018 10:31 am
by Dan911
Unit Converter7.rar.zip
(9.63 KiB) Downloaded 1071 times