Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Swap content center part

Anonymous

Swap content center part

Anonymous
Not applicable

What's the easiest way to swap content center parts?

 

I have a load of stainless bolts constrained in an assembly and wish to switch them for zinc bolts of the same length and family. 

 

The description for Components.AddContentCenterPart says 'adds/updates' CC part, but I couldn't work out how to use it update parts, just insert them at a determined point. 

 

Couldn't find anything in the API help about this command either. 

0 Likes
Reply
428 Views
3 Replies
Replies (3)

JamieVJohnson2
Collaborator
Collaborator

Option 1.  Replace All Components.

This would require you to get the necessary replacement files OUT of the content center and stored locally first, say in a dummy assembly.

Option 2. Modify the family to change its material, then update parts.  This is a permanent change, so if you plan to use material A then material B, and back, this would not be the best idea.

Option 3. Override all parts materials using BOM drill down method, this would require you to fool Inventor into thinking the Content Center Folder is just another design folder (modify IPJ), and all the files would need to be read-write.

jvj
0 Likes

Anonymous
Not applicable

So the answer is you can't? I need to be able to switch between the two depending on what the user wants on every job.

 

Thanks for your thoughts. 

 

Option 1 won't work with Vault

Option 2 will bugger up CC

Option 3 sounds like a botch

 

If under the same CC family table I have both stainless and zinc is it possible to switch between the two using iLogic?

 

The last resort option is to save all the bolts I need to a normal folder on Vault, but the problem is that I'm then adding identical copies of things to vault when I'd like to keep everything as CC.

0 Likes

JamieVJohnson2
Collaborator
Collaborator

Option 1, Replace all Components.  This will work fine with Vault, (we use it with a content center library folder set).  The replace components is done inside of an active iam file.  The code can find an object from one family and replace it with a similarly named object from the other library.  This can be done via file name, or content center grab.  I personally would go for the file name method first, because file paths are easier to code for.  But this requires everything (to be swapped) to be saved as a file from the content center to the local working folder first.  Since your not modifying the content center file, only swapping one out for another in the assembly, it will be fine with Vault.

jvj
0 Likes