iLogic replace Custom Content Center Part

iLogic replace Custom Content Center Part

Anonymous
Not applicable
710 Views
3 Replies
Message 1 of 4

iLogic replace Custom Content Center Part

Anonymous
Not applicable

Hey everybody,

 

I need a little bit of help on one of my iLogic rules.

 

What I want to do is basically replace a custom content center part based on calculations made in an iLogic configuration assembly. I have a plate in the CC, in the directory EGSL. It is named EGSL-1. It has two custom parameters "a" and "b" (default 500, 500). The part number is generated as following: "EGSL-1 "&a&"-"&b. So I have "EGSL-1 500-500" (default part is already inserted in the assembly). I want to change it to be 900 and 900. So the part number should be "EGSL-1 900-900"

 

I'll attach the code I have right now. I am stuck at the point where I have to create the new member. So the create member method doesn’t work for me.

 

I have tried to look up a lot of forums and threads, but all solutions are made for parts with standard parameters, so they know which row they want to insert. In my case I have only one row in my CC family table and with these two custom properties I can have an infinite range of parts.

 

Any help would be greatly appreciated. !

 

Thank in advance

0 Likes
711 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Anybody ? A hint on this? Maybe somebody from Autodesk?
0 Likes
Message 3 of 4

zakkgray
Community Visitor
Community Visitor

Try adding parameters for dim "a" and "b" within your model,
And using the member name as the defining feature.

So basically, right click the member column, add an expression of "Part Name."& {a} & {b} & " - " & {Length}

Or something similar to that.

So your member name will be defined by the dims.


Then when using it within the rule. Define the parameters for a & b
Then use the parameters to call in the member name within the content centre replace rule.

Might be a long way round it, but it does work, I'm pretty new to iLogic, but that's what I have done.

 

0 Likes
Message 4 of 4

Anonymous
Not applicable

As for why your CC part creation is failing, you are specifying NewRow as ContentTableRow and you never initialize the variable. The oFamily.CreateMember method fails because the expected row argument is an index number associated with the actual row displayed in content center. If there's only one row, then your initialization would be Dim NewRow as ContentTableRow = oFamily.TableRows.Item(1). 

0 Likes