CHANGE/REPLACE COMPONENT FROM CONTENT CENTER WITH iLOGIC

CHANGE/REPLACE COMPONENT FROM CONTENT CENTER WITH iLOGIC

STECORO
Participant Participant
90 Views
2 Replies
Message 1 of 3

CHANGE/REPLACE COMPONENT FROM CONTENT CENTER WITH iLOGIC

STECORO
Participant
Participant

Hello community,

 

I would like to submit this problem to you.


I have an assembly containing several pipes from the centre, the part was created as a part and published with the pipe length parameter editable.

My need is to change the length of some of them, not all of the assembly.
If the measure is already present in the library the component is replaced, if it is not present a new element is created.

Can anyone help me with this?

Thanks in advance

 

0 Likes
91 Views
2 Replies
Replies (2)
Message 2 of 3

mat_hijs
Collaborator
Collaborator

You can use these iLogic snippets to place content center components: 

mat_hijs_0-1751374778869.png

If a component already has the same name in the browser it will replace that component, if not it will place a new component.

 

You can always place a component manually and then in the iLogic editor right click on it and capture current state to help identify the arguments you need to place it:

mat_hijs_2-1751374984934.png

 

 

0 Likes
Message 3 of 3

STECORO
Participant
Participant

Hello Mat,

thanks for your reply.

This command could be helpful but doesn't resolve my problem.

I'm trying to explain better with an example.

 

STECORO_0-1751380323248.png

i have an horizontal cable duct and a vertical one.

STECORO_1-1751380392666.png

my two parts are called CANALA.... "1000" is the parameter lenght and also "500".

What a want to do is create two parameters called HORIZONTAL_DUCT and VERTICAL_DUCT and manage the components 

STECORO_2-1751380529789.png

If the parameter that i will insert in the user parameter is already created in the content center , the ilogic replace the component

If the parameter is not present in content center , ilogic create a new CANALA...."new lengh parameter"

 

Hopre there are enough info.

 

Best regards

 

 

 

0 Likes