Hello Guest it is March 28, 2024, 10:39:02 AM

Author Topic: Wizard for editing a ready tap file.  (Read 7283 times)

0 Members and 1 Guest are viewing this topic.

Wizard for editing a ready tap file.
« on: August 24, 2009, 06:19:58 AM »
Is possible to make  a wizard that can edit a ready shape?
My will is to recalculate a ready shape and change the dimensions of this shape.
For example
if there is a line G01 X20 Y0,  i want to add 5 more units to X axis and 3 to Y axis (these values will be on user DROs), so it will be G01 X25 Y3
Can that be done?

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Wizard for editing a ready tap file.
« Reply #1 on: August 24, 2009, 07:00:59 AM »
You can scale in Mach by setting the scale up or down ( next to the DRO's).
You can also use a text editor to search and replace all values with a different value. ( carefull if you have arc's ).
RICH

Re: Wizard for editing a ready tap file.
« Reply #2 on: August 24, 2009, 07:33:16 AM »
Hi Rich!
Well its not exactly what i need.
With this scale correction, you have first to calculate the scale factor, by knowing the overal dimensions.
Also, what if you have several shapes in the file? The executed program dimensions will be different than the original.
So, i suppose that i need to touch the code for each part.
Any other ideas?

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: Wizard for editing a ready tap file.
« Reply #3 on: August 24, 2009, 07:40:13 AM »
Yep,
I draw it in CAD very acurately and do to it anything i want prior to exporting it.
This way a i have the exact basis for what was done.
RICH
Re: Wizard for editing a ready tap file.
« Reply #4 on: August 24, 2009, 07:52:50 AM »
Rich, its clear to me that i can redraw my shapes and have them accuratelly executed.
My question is whether i can edit with any VB commands in a button a ready shape.
This will be done in order not to redraw,
and to be used as "kerf calculator" for plasma cutting.
As you may know kerf (flame diameter) can change with the thickness of the plate to be cut.
So i need to quickly redraw my shapes to the desired dimensions.
Thank you for replying!

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Wizard for editing a ready tap file.
« Reply #5 on: August 24, 2009, 11:13:51 AM »
Sure, you can do it, but it won't be easy. You'll need to be able to read the g-code and interpret the "shapes" in the file before you can edit them.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

vmax549

*
Re: Wizard for editing a ready tap file.
« Reply #6 on: August 24, 2009, 11:24:53 AM »
IN the current VB structure?  NO.

Hope that helps, (;-) TP
Re: Wizard for editing a ready tap file.
« Reply #7 on: August 24, 2009, 11:49:19 AM »
IN the current VB structure?  NO.

Hope that helps, (;-) TP

Oh, it *could* be done, but you'd have no hair left by the time you finished.  You'd be FAR better off doing it off-line.  I don't even want to *think* about writing a G-code parser in VB.  YUCK!

Regards,
Ray L.
Regards,
Ray L.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Wizard for editing a ready tap file.
« Reply #8 on: August 25, 2009, 03:21:44 PM »
What Ray said, Yuck.
fun times

vmax549

*
Re: Wizard for editing a ready tap file.
« Reply #9 on: August 25, 2009, 04:21:09 PM »
YOU could use tool comp (;-) to do the kerf offsetting. A change would be a simple number change.

(;-) TP