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

Unexpected regeneration in Pro/PROGRAM

tyler.smith
1-Newbie

Unexpected regeneration in Pro/PROGRAM

Hi all,

I am seeing some strange regeneration behavior with a simple assembly I've built. The assembly has three assembled components (A, B, and C). There is an input parameter, CONTAINER, at the assembly level. The components are being added and suppressed in the assembly via thefollowing program:

IF CONTAINER == 1
ADD PARTA
INTERNAL COMPONENT ID 56
END ADD
END IF

IF CONTAINER ==2
ADD PARTB
INTERNAL COMPONENT ID 61
END ADD
END IF

IF CONTAINER ==3
ADD PARTC
INTERNAL COMPONENT ID 49
END ADD
END IF

In the assembly, the initial value of CONTAINER = 1. So, when I open the assembly, component A is present in the assembly and B and C are suppressed.Now for the strange behavior part: When I change CONTAINER to 2 and regenerate the assembly, component A regenerates completely, THEN A is suppressed, THEN B is added and regenerated. I don't understand why A is regenerating before the program suppresses it, nor do I want A to regenerate prior to being suppressed. I have checked for circular references and don't find any.

Anyone out there dealt with this before? All clues are greatly appreciated!

Thanks,
Tyler


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration