Content Center Replace: "Can't find category"

Content Center Replace: "Can't find category"

asiteur
Collaborator Collaborator
406 Views
1 Reply
Message 1 of 2

Content Center Replace: "Can't find category"

asiteur
Collaborator
Collaborator

Hi there,

 

So I've created a model that requires replacing parts from Content Center.

I have set up a custom CC desktop library and 2 iLogic scripts (1 on the document and 1 external).

Replacing so far has been successful, until the moment that I finished my model and started to replace about 60 entries in one go.

It always go fine in the beginning, but then on random entries it starts complaining that it can't find the CC category in the Library.

 

I was afraid that I was "overloading" Inventor with CC requests and decided to try finding an unfound category (that clearly exists as another time replacing goes smooth) upto 1000 times in a loop without success. I also implemented some Sleep() and DoEvents, but the problem persists.

 

Now I found after long debugging that after one or more successful replacements, InventorApplication.ContentCenter does not return the entire Content center, but some sort of subset. 

Now my Category

Products

---SubProduct1

---SubProduct2

---SubProduct3

 

Suddenly only contains only Subproduct1. Similarly sometimes not all toplevel categories are in the object either.

 

This SubProduct1 is generally the one that I just replaced from. The behavior is not very consistent,...

 

Anyone else experience with this? In iLogic I use only this:

 

ThisApplication.ContentCenter

to access CC

 

 

Is there anything known about Content Center issues when using Automated placement? Anyone else doing mass replacement from CC using iLogic?

 



Alexander Siteur
Project Engineer at MARIN | NL
LinkedIn

0 Likes
407 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi @asiteur,

 

Can you please provide iLogic scripts and sample 2 category custom CC files to reproduce issue?

 

Please make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes