cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

counter in relations

EL_10548943
12-Amethyst

counter in relations

Hello everyone,
I have a question about how relationships work,
I can't find a counter / value increment function.
The ideal in my case would have been a FOR or WHILE function unfortunately there is no WHILE or FOR function in CREO relatio,ns.
My question is, is there a function that could be an alternative?
I have about 50 units and doing a 1 by 1 program doesn't suit me.

Thank you for reading.

find attached my relation I want to change

 

 

ACCEPTED SOLUTION

Accepted Solutions

Relations are a "single pass" type of processing. The relations you define are evaluated in the order in which you define them, once, every time the model is regenerated. There is no looping functionality, like DO WHILE,  FOR, or REPEAT UNTIL, etc. As a result, trying to calculate something like the appropriate "old style" fraction for a dimension (0.125 -> 1/8, etc.) requires a really tedious bunch of IF statements.

It's not so much a programming "language" as an instruction queue, I guess.

View solution in original post

3 REPLIES 3
tbraxton
22-Sapphire I
(To:EL_10548943)

You will need to use functionality other than relations to loop. Creo is capable of calling external scripts or you can use one of the Creo APIs (Toolkit). Visual Basic, C , & Java are supported to various degrees in the APIs.

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

Relations are a "single pass" type of processing. The relations you define are evaluated in the order in which you define them, once, every time the model is regenerated. There is no looping functionality, like DO WHILE,  FOR, or REPEAT UNTIL, etc. As a result, trying to calculate something like the appropriate "old style" fraction for a dimension (0.125 -> 1/8, etc.) requires a really tedious bunch of IF statements.

It's not so much a programming "language" as an instruction queue, I guess.

Hi, sometimes you can solve this using patterns. Relations that involve pattern dimensions can be propagated through the pattern.

How do you want to apply the RLX parameters?

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags