Hello everyone,
I would like to pilot a repetition with family table, the fact is they dont keep the name in memory( first image).
This is a big repetition so i dont want add 1 by 1 every subassembly.
My idea is to pilot the component by is ID in the relations and find the correct lenght in is family table
So my question is there anything like a function to schearch the ID of the component.
I hope you understand what i'm saying. I'm new in CREO/PTC and even more in relations and program. I probably dont have the vocabulary.
Thank you for reading
Solved! Go to Solution.
Hello,
Actualy, I solve my problem just by adding 1 by 1 my componetn.
My problem was like if it was possible to change the value with family instance in repetition, the problem i had it is that number of repetition change, and in pro program i didnt succed of do a repetition of the instance instead of the piece. So they didnt have the name i create with LOOKUP INST.
The only solution i thinked about with a repetion was with a FOR function (change the value with a N and N+1). But as you know there is not FOR function in relation. So i was force to use the first solution add 1 by 1.
I shearch on the web and on PTC i feel like it's possible to do this with a repetition but you have to use TOOLKIT and then add a language C program with the function FOR. I dont know how to use it so i give up.
I wanted to manage a repetition with a family table but it's not possible because the piece dont have the name of the LOOKUP_INST FUNCTION.
Hope you understand me, i dont have a very good vocabulary in this field, I dont feel like give you picture or example will help you to understadn me.
Thank you for reading,
Me.
You can search for components by ID but I would recommend adding the ID column to your model tree. It might be a little easier to work with. See below:
In your model tree:
Hello,
I didnt know you could do this, it help a lot thank you !
You save me a lot of time.
You can automatically select the right family instance by relations in pro program so I think there are some options for you. I do not exactly understand what you are trying to do. Can you give an example or a picture of the model?
Hello,
Actualy, I solve my problem just by adding 1 by 1 my componetn.
My problem was like if it was possible to change the value with family instance in repetition, the problem i had it is that number of repetition change, and in pro program i didnt succed of do a repetition of the instance instead of the piece. So they didnt have the name i create with LOOKUP INST.
The only solution i thinked about with a repetion was with a FOR function (change the value with a N and N+1). But as you know there is not FOR function in relation. So i was force to use the first solution add 1 by 1.
I shearch on the web and on PTC i feel like it's possible to do this with a repetition but you have to use TOOLKIT and then add a language C program with the function FOR. I dont know how to use it so i give up.
I wanted to manage a repetition with a family table but it's not possible because the piece dont have the name of the LOOKUP_INST FUNCTION.
Hope you understand me, i dont have a very good vocabulary in this field, I dont feel like give you picture or example will help you to understadn me.
Thank you for reading,
Me.