hexagon logo

Can I loop this?

Hi guys!

I'm on my last week before 4 weeks vacation and I feel great! Sunglasses

I've got this part that I'll be programming, and it's really something...
Not that complicated but it's large and it's got a whole bunch of small planes and edges inside, and the drawing states "Profile of any surface 0.8 ABC" (mm),
so I'll have to place points everywhere. It's kind of divided i two halves where the pattern is the same on the left vs right side. (Unfortunately I can't disclose the drawing document.)

So here's my question:
Can I use a loop to program left side, then move it to the right side and get all the points there too?

And would this work?


V1 = LOOP/START, ID = YES, NUMBER = 2, START =1, SKIP =,
OFFSET: XAXIS = 0, YAXIS = 208.82, ZAXIS = 0, ANGLE = 0

[Place all my points here]

LOOP/END



And will all the points be getting unique element names, will I be able to see the second set of points on the CAD-model?

Have a great day everyone! Frog
Parents
  • Without seeing a sketch or a better description we can't say, however this is where Pattern/Paste with pattern is usually the best option.

    That loop will simply offset each point by 208.82. Assuming the points all have a 0,0,1 vector that might do it (again, depending on the shape of the part and the arrangement of the points). The points will be 'available' but won't have new ID's, instaed you'll have Pnt1[1] and Pnt1[2],, Pnt2[1] and Pnt2[2] etc.

    With Pattern has a mirror option (need to make sure your origin is in the centre of the part) which will give you individual points.

Reply
  • Without seeing a sketch or a better description we can't say, however this is where Pattern/Paste with pattern is usually the best option.

    That loop will simply offset each point by 208.82. Assuming the points all have a 0,0,1 vector that might do it (again, depending on the shape of the part and the arrangement of the points). The points will be 'available' but won't have new ID's, instaed you'll have Pnt1[1] and Pnt1[2],, Pnt2[1] and Pnt2[2] etc.

    With Pattern has a mirror option (need to make sure your origin is in the centre of the part) which will give you individual points.

Children
  • Hi
    I have a similar question but maybe more of a head ache Slight smile

    What I need to do is hack the probe file and be able to increment the “B”axis value of the probe by the value in the variable. This should then force the software to call up the required probe based on the new value of “B” axis.

    I cant seem to attach a screen shot of my experimental component but basically its a cylinder. It has vertical slots that are equally spaced around the out side of the cylinder at 15 degree intervals. I got the main program working, its just the probe rotations is what is not working. The program loops and correctly probes each slot based on the rotation of 15 degrees in the loop parameters.

    I have provided the pseudo code of what I need to be able to do below.



    Set B_axis variable to zero ( initially )

    Loop start ( ID = yes, Number = 24, Start = 1, Skip = 0, OFFSET:Xaxis = 0, Yaxis = 0, Zaxis = 0, ANGLE = 15 )

    Call up probe A90 B0

    Change probes “B” axis details so it’s the same as variable B_axis. This requires access to the probe file data field.
    The correct probe will then be called up by the software.

    Run probing sequence - probe points in one slot only

    Increment B_axis variable by 15

    Loop end




    It would be great if I could access the ANGLE variable and use that to alter the probes “B” axis details.
  • You should create an "own" thread with your question.