Swapping Content Center parts from parameters

Swapping Content Center parts from parameters

alan.wedge
Enthusiast Enthusiast
378 Views
2 Replies
Message 1 of 3

Swapping Content Center parts from parameters

alan.wedge
Enthusiast
Enthusiast

Hi,

 

I have a content center part with multiple variations. I want to change between different variations using parameters and a linked Excel document.

 

I know how to write the logic to work out what is needed, I just need to know how to switch out the parts or if it is even possible.

 

Thanks,

Alan.

0 Likes
Accepted solutions (1)
379 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor

Here is an image of how to use  the ilogic capture snippet tool. If you use the origins planes/points/axis as much as possible when constraining you can keep key constraints when switching members. I would think add and delete should work for you. 

AAcheson_0-1638913757450.pngAAcheson_1-1638913856252.png

You can also use the API but it does take a lot more lines and knowledge of the functions. 

Here is a post here

If you have more questions please post some images and a description of the workflow and which section you need assistance with. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 3

alan.wedge
Enthusiast
Enthusiast
Accepted solution

Thanks for the help, I ended up finding a different solution.

 

Using the IPart rather than the content center part means I can use the following:

 

partname = "part"

rowname = "config1"

iPart.ChangeRow(partname,rowname)

 

the part name is looking in the tree for the object name, the row name is looking for the file name of the IPart table

 

I can drive this by using something like:

 

rowname = "config" & parameter

0 Likes