Inventor Content Center files only as preview

Inventor Content Center files only as preview

Goran.Kis.
Enthusiast Enthusiast
342 Views
2 Replies
Message 1 of 3

Inventor Content Center files only as preview

Goran.Kis.
Enthusiast
Enthusiast

Hi all,

 

i have some questions.

 

I have Content Center files on Vault. There is user Content center database (read/write) and all other are default one that comes with Inventor (read only).

 

Is there a way to make Inventor content center files only to be viewed? I wanna to have ability to insert only files from user Content Center but Inventor default ones must be only Viewed and not ability to be inserted.

 

I wanna to only see other Content Center files but not have ability to insert them into assembly. So, user content center have different part number and materials and i don't wanna to have option to insert any other Content Center file beside user ones. I wanna to see every standard in all Content Center databases but only ability to insert it into assembly after i transfer and modify it in user Content Center.

 

If anyone have idea how to achieve that?

 

Thnx

 

0 Likes
343 Views
2 Replies
Replies (2)
Message 2 of 3

marcin_otręba
Advisor
Advisor

Hi,

 

i think you can have addin wchich will be fired befor  AssemblyEvents.OnNewOccurrence and AssemblyEvents.OnOccurrenceChange, in wchich you will determine wchich type of component it is. Depending of result you will do some actions like cancelling event with correct notification.

 

Check this out for start:

 

https://forums.autodesk.com/t5/inventor-customization/content-center-file/m-p/9066906

 

do you know how to do it ?

Hi, maybe you want to check my apps:


DrawingTools   View&ColoringTools   MRUFolders

0 Likes
Message 3 of 3

Goran.Kis.
Enthusiast
Enthusiast

Hi @marcin_otręba 

 

Yes, that is my second option. Use some kind of iLogic/script that will not allow save of assembly if Content Center file is not from user (or some kind of filter).

There are no problem at all to add new script despite i use at least 20 script right now in templates.

 

I am trying to find other solution than write another script.

I try with restrictions in SQL managements studio to restrict something that will allow read from table and block create component but i don't wanna to go through lot of SQL tables to find something useful. I was trying to find global restriction per SQL table (Content Center database) but without luck.

0 Likes