Replace content center part with Ilogic

Replace content center part with Ilogic

mat_hijs
Collaborator Collaborator
2,234 Views
5 Replies
Message 1 of 6

Replace content center part with Ilogic

mat_hijs
Collaborator
Collaborator

Here we go again. So, I created a custom content center part with just one variable parameter, the length (which is a custom column). I know it's possible to change the size very easily after it is placed. But now I'm wondering if it's possible to do this using Ilogic. What I would like to have is, an assembly, which will have a parameter length, and whenever I change that length, the custom content center part will also update so it'll be the same length. Is this possible, in a very easy way, using Ilogic?

0 Likes
2,235 Views
5 Replies
Replies (5)
Message 2 of 6

johnsonshiue
Community Manager
Community Manager

Hi Mathijs,

 

I think it is doable. Custom CC part is just like any regular part. It is driven by parameters. You can find those parameters and then drive the values in an iLogic rule.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 3 of 6

mat_hijs
Collaborator
Collaborator

Do you have any idea how to do this? I found out that there is a snippet for adding cc parts, which apparently can also be used to replace an existing cc part with another one. But I can't seem te figure out how to make this work.

0 Likes
Message 4 of 6

JaneFan
Autodesk
Autodesk

Hey @mat_hijs , 

 

Please just place CC component in your assembly, and use Capture current status to let iLogic to generate the code for you. 

2.PNG




Jane Fan
Inventor/Fusion QA Engineer
Message 5 of 6

mat_hijs
Collaborator
Collaborator

Capturing the current state is one thing, but I want to know how to replace/change size with Ilogic.

0 Likes
Message 6 of 6

JaneFan
Autodesk
Autodesk

After getting CC component using iLogic captured code, we can use the the component to do some update stuff, like getting parameters and replace component using Occurrence object.   

1.PNG




Jane Fan
Inventor/Fusion QA Engineer
0 Likes