Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: giannis121 on August 24, 2009, 06:19:58 AM

Title: Wizard for editing a ready tap file.
Post by: giannis121 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?
Title: Re: Wizard for editing a ready tap file.
Post by: RICH 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

Title: Re: Wizard for editing a ready tap file.
Post by: giannis121 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?
Title: Re: Wizard for editing a ready tap file.
Post by: RICH 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
Title: Re: Wizard for editing a ready tap file.
Post by: giannis121 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!
Title: Re: Wizard for editing a ready tap file.
Post by: ger21 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.
Title: Re: Wizard for editing a ready tap file.
Post by: vmax549 on August 24, 2009, 11:24:53 AM
IN the current VB structure?  NO.

Hope that helps, (;-) TP
Title: Re: Wizard for editing a ready tap file.
Post by: HimyKabibble 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.
Title: Re: Wizard for editing a ready tap file.
Post by: poppabear on August 25, 2009, 03:21:44 PM
What Ray said, Yuck.
Title: Re: Wizard for editing a ready tap file.
Post by: vmax549 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
Title: Re: Wizard for editing a ready tap file.
Post by: giannis121 on August 26, 2009, 01:25:22 AM
What is tool comp?
Title: Re: Wizard for editing a ready tap file.
Post by: vmax549 on August 26, 2009, 10:56:34 AM
It is an offset function of CNC machines that let you use a centerline drawing to program with THEN the machine can do the offsetting to account for TOOL  radius. Instead of the CAM apply offsets the machine does instead. THat way YOU can adjust the amount of offset needed to create an accurate part.

Hope that helps(;-) TP