Steve,

The safest way to handle parts like this is to Group All and use GeoEdit, Transform, Move to move the entire part so that the highest point on the part is Z = 0. All your Z values will be negative and you can use clearance values like .25 or .1 The peck drilling cycles will love you for it.

If you must leave the part as is, then insert into your .tmp file at the proper place, a test for a value before changing it. For example:

#IF(#ZPOS>0)<#EVAL(#ZPOS=0-#ZPOS)>

This says, "if the value of #ZPOZ is greater than zero, then change the value of #ZPOS to a negative by subtracting it from zero".

It will work on any numeric variable you choose.

Gene Bowen
Steve Nelson wrote:

I was wondering if someone might know how to change a X-6.0 Y0.5 Z-0.7875 R-16.4 W.5 F2.8 H4 to a positive rather than negative you see I'm using one
Work Plane the XY Plane and half my part is in the positive position from
-Z- Axis and the other half is in the negative position from the -Z- Axis as
the center of the part is the XY Plane then I set up a Different work plane
for each end of the part so this is what it posts like see sample below. The
parts are 33" long so the top of the part is 16.5 in -Z- above the XY plane
each H# is a different part 3parts total so 6 ends.


:G0 G70 G90 T240 M6 B0
(MSG,1.620 DIA. BORE)
X6.0 Y0.5 S700 M3 T240 H3
Z16.7 M8
G85 Z-0.7875 R16.6 W.5 F2.8 H3
X0.0 Y0.5 Z-0.7875 R16.6 W.5 F2.8 H2
X-6.0 Y0.5 Z-0.7875 R16.6 W.5 F2.8 H1
G0 Z20 H0
B180
G80Z16.7
G85 X-6.0 Y0.5 Z-0.7875 R-16.4 W.5 F2.8 H4
X0.0 Y0.5 Z-0.7875 R-16.4 W.5 F2.8 H5
X6.0 Y0.5 Z-0.7875 R-16.4 W.5 F2.8 H6
G0Z20.0
M1




======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to