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

Add part if condition is met

SOLVED
Highlighted
Aquamarine

Add part if condition is met

Hi,

 

I have an assembly that contains aluminium-Profiles.

If the profiles exceed a length of (lets say 1500mm) then other profiles have to be added to the assembly to increase stability.

 

So maybe something like that is possible:

 

if(length of dimension  > 1500) 

 then add/ the profiles/parts to reinforce the construction

 

 

How can something like that be done ?

 

Thanks,

Maik

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Add part if condition is met

You will probably need to create a parameter that is connected to the length so you can use the parameter in Model Intent -> Program to enable/disable parts. In Relations you'll type Dxxx=ParameterName to connect the Dxxx value that Creo automatically generates for every dimension to the parameter that you have created. In Pro/Program you will simply need to add IF ParameterName>1500 in front of the "add part coding" that Creo automatically generates and then an END IF after the part has been added (after END ADD, which Creo automatically generates). Are you familiar with parameters, relations and program?

View solution in original post

2 REPLIES 2

Re: Add part if condition is met

You will probably need to create a parameter that is connected to the length so you can use the parameter in Model Intent -> Program to enable/disable parts. In Relations you'll type Dxxx=ParameterName to connect the Dxxx value that Creo automatically generates for every dimension to the parameter that you have created. In Pro/Program you will simply need to add IF ParameterName>1500 in front of the "add part coding" that Creo automatically generates and then an END IF after the part has been added (after END ADD, which Creo automatically generates). Are you familiar with parameters, relations and program?

View solution in original post

Re: Add part if condition is met

Thanks a lot for your help. I'll try it.

Announcements