Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello everyone,
There is a part that has been designed before, when I open the part, it asks me to write the model I will choose and it arranges the model according to the answer I give.
There are some formulas in the parameters, but when I looked at the programming part, I could not find an "if" formula for body selection. The family table is also empty.
I can do this from the family table, but every time I open the part, it asks, which is a problem for me.
How can I do this with the if command from the programming part?
What I want to do is for the user to see the model they want by typing the model code they want.
can you help with this issue?
When the user selects model 1, the model tree looks like this.
When the user selects model 2, the model tree looks like this.
Solved! Go to Solution.
I don't use it, but there are more examples here:
and here:
https://www.youtube.com/watch?v=930o_03tlGo
and here (I am sure there is a newer one, but they haven't changed anything):
When you say "code" I am going to assume you are referring to Pro/Program. If so you want to check out this thread:
https://community.ptc.com/t5/3D-Part-Assembly-Design/Pro-Program-IF-statement-question/td-p/675380
thanks for your reply. I meant "pro/program" as you said. In the example you gave, the "feature" code seems appropriate to me, but I get an error when typing "feature id".
Is there a more descriptive example?
I don't use it, but there are more examples here:
and here:
https://www.youtube.com/watch?v=930o_03tlGo
and here (I am sure there is a newer one, but they haven't changed anything):
Thank you for your help. Now I understand the issue better.