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
  • Loops and patterns both have advantages and disadvantages.


    Loop - Pros

    Programs are shorter
    Recycled code - so if something changes you only need to change it in one place


    Loop - cons

    Features aren't as readily accessible and often require some hard coding to access
    If a change is required in just one of the loops then you're stuffed (or may require some flow control to deal with it)
    If you encounter an issue mid execution it can be difficult to fix and continue execution (i.e. you have to start at loop #1 again)


    Patterns - Pros

    Super easy to implement - very powerful
    You end up with individual features to work with
    You can deal with mirrored features


    Patterns - cons

    More code to manage - longer programs
    If changes are required they're required in more than one place


    Having some non-CMM programming experience I'm a fan of recycled code and like loops and subroutines etc, but I rarely use them in PC-Dmis.

    This is for two main reasons:

    1) accessing looped features through code (i.e. using a script for exporting to excel etc)
    2) having to re-execute from start of loop if issues are encountered
Reply
  • Loops and patterns both have advantages and disadvantages.


    Loop - Pros

    Programs are shorter
    Recycled code - so if something changes you only need to change it in one place


    Loop - cons

    Features aren't as readily accessible and often require some hard coding to access
    If a change is required in just one of the loops then you're stuffed (or may require some flow control to deal with it)
    If you encounter an issue mid execution it can be difficult to fix and continue execution (i.e. you have to start at loop #1 again)


    Patterns - Pros

    Super easy to implement - very powerful
    You end up with individual features to work with
    You can deal with mirrored features


    Patterns - cons

    More code to manage - longer programs
    If changes are required they're required in more than one place


    Having some non-CMM programming experience I'm a fan of recycled code and like loops and subroutines etc, but I rarely use them in PC-Dmis.

    This is for two main reasons:

    1) accessing looped features through code (i.e. using a script for exporting to excel etc)
    2) having to re-execute from start of loop if issues are encountered
Children
No Data