Skip to main content
12-Amethyst
July 5, 2023
Solved

ID of component in relation

  • July 5, 2023
  • 2 replies
  • 4049 views

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

 

 

Best answer by EL_10548943

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.

 

 

2 replies

16-Pearl
July 5, 2023

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:

 

Tdaugherty_0-1688560137329.png

Tdaugherty_1-1688560195940.png

Tdaugherty_2-1688560231715.png

 

 

 

12-Amethyst
July 13, 2023

Hello,

I didnt know you could do this, it help a lot thank you !

You save me a lot of time.

12-Amethyst
July 13, 2023

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?

EL_1054894312-AmethystAuthorAnswer
12-Amethyst
July 13, 2023

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.