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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Conditional relations

sclamens
5-Regular Member

Conditional relations

Hello,

I would like to make a relation in a part to inhibate a fonction

thomething like this:

IF NBR_DOTS ==0

fontion is inibate

endif

 

Thanks for your help.

17 REPLIES 17


@sclamens wrote:

Hello,

I would like to make a relation in a part to inhibate a fonction

thomething like this:

IF NBR_DOTS ==0

fontion is inibate

endif

 

Thanks for your help.


Hi,

I guess you want to suppress pattern of features. You cannot do this using relations. You have to use Pro/PROGRAM functionality.

See https://support.ptc.com/help/creo/creo_pma/r7.0/usascii/#page/fundamentals%2Fprogram%2Fabout_pro_program.html%23 section in Creo Help.

https://support.ptc.com/help/creo/creo_pma/r7.0/usascii/#page/fundamentals%2Fprogram%2Fexample_a_parametric_design_for_a_blender_cover.html%23 show how to use IF condition to suppress specific feature.


Martin Hanák

Note: You can use https://translate.google.com/ page to translate text from French to English.


Martin Hanák
sclamens
5-Regular Member
(To:MartinHanak)

Thanks for your help.

 

English is not a problem for me but it is with script. As I can see the tuto is for an assembly. I want to do this fonction on a part generated as a family. Then if I understand well what you told me it is not possible to do it.

I then going to think about a different clue. 


@sclamens wrote:

Thanks for your help.

 

English is not a problem for me but it is with script. As I can see the tuto is for an assembly. I want to do this fonction on a part generated as a family. Then if I understand well what you told me it is not possible to do it.

I then going to think about a different clue. 


Hi,

the problem is that you did not explain in detail, what you're doing.


Martin Hanák
sclamens
5-Regular Member
(To:MartinHanak)

Not easy

I'm going to try to explain 

I made 3 pictures that silulate the 3 configurations I want to do:

Buse_Config1 Nozzle with no dot

Buse_Config2 Nozzle with 1 dot

Buse_Config3 Nozzle with 2 or more dots


@sclamens wrote:

Not easy

I'm going to try to explain 

I made 3 pictures that silulate the 3 configurations I want to do:

Buse_Config1 Nozzle with no dot

Buse_Config2 Nozzle with 1 dot

Buse_Config3 Nozzle with 2 or more dots


Hi,

unzip 2020-06-23_program.zip file.

mh.prt (created in Creo 4.0) contains PNT_QTY parameter. Set its value to 0, 1, 2 gradually, regenerate model and check model geometry.

mh_program.docx contains copy of Pro/PROGRAM included in model.


Martin Hanák

Here's a solution which uses a pattern (created in Creo 4.0)

It uses the same technique as MartinHanak, with an IF...END IF statement to suppress the pattern when there are no holes required.

You can change the values in the relations (at the top).

 

Just for fun I added something extra...maybe you want an octagon bolt in the future?

 

sclamens
5-Regular Member
(To:HamsterNL)

 Thanks for the example file but I can not open it 🤔

Which version of Creo do you have?

sclamens
5-Regular Member
(To:HamsterNL)

I have Creo 4.0.

Thanks

 

Strange...if you are also on Creo 4, then you should be able to unzip the attachment and open the file.

 

Maybe you'll have to remove the "number file extension", so the filename ends with .prt ?

Dale_Rosema
23-Emerald III
(To:sclamens)

Just checking to see if you have an educational license of Creo. Non-educational licenses are not compatible.


@HamsterNL wrote:

Here's a solution which uses a pattern (created in Creo 4.0)

It uses the same technique as MartinHanak, with an IF...END IF statement to suppress the pattern when there are no holes required.

You can change the values in the relations (at the top).

 

Just for fun I added something extra...maybe you want an octagon bolt in the future?

 


Hi,

I opened example.prt successfully (using commercial license).


Martin Hanák
sclamens
5-Regular Member
(To:MartinHanak)

I'm working in Bosch Compagny and for shure I'm using a comercial license.

Would it be possible to send the part unzip please.

 

See below the message I get when I try to open the prt

2020-06-30_16h22_46.png


@sclamens wrote:

I'm working in Bosch Compagny and for shure I'm using a comercial license.

Would it be possible to send the part unzip please.

 

See below the message I get when I try to open the prt

2020-06-30_16h22_46.png


Hi,

1.]

Are you able to open mh.prt from my 2020-06-23_program.zip file?

2.]

If you start your Creo you can see, that CAD-LINK application is started (in message area). I guess that this application checks every opened part ... if the part does not meet BOSCH criteria then CAD-LINK application disables Creo from opening the model.


Martin Hanák
sclamens
5-Regular Member
(To:MartinHanak)

Hi I managed to open the files. I was first unzip just the file but it did not work. I then unzip all at once and it worked.

Thanks for your help.

That's great! Let us know if you have questions 🙂

 

Don't forget to mark one of the answers as the solution if it solved your problem!

Top Tags