Add new family to content centre library

Add new family to content centre library

kresh.bell
Collaborator Collaborator
455 Views
4 Replies
Message 1 of 5

Add new family to content centre library

kresh.bell
Collaborator
Collaborator

Hi,

is it possible create iLogic for create new column name, column caption, expression and map to properties. I have my custom content centre library with my columns, planty time I need for create all my custom columns each time when i want add new family to library

2024-04-22_10-41-27.jpg

 

0 Likes
Accepted solutions (1)
456 Views
4 Replies
Replies (4)
Message 2 of 5

CCarreiras
Mentor
Mentor

Hi!

 

I don't think so.
I'm not aware that the software API have code to do such kind of things.

CCarreiras

EESignature

0 Likes
Message 3 of 5

kresh.bell
Collaborator
Collaborator

thanks

0 Likes
Message 4 of 5

Andrii_Humeniuk
Advisor
Advisor
Accepted solution

Hi @kresh.bell . I will say right away that I have never done this, but it seems possible, at least the API has the necessary functionality. I also found several examples of work in ContentCenter (link, link, link), but according to your request, I did not find it.

Below is an example of adding a column to your library:

 

Dim oInvApp As Inventor.Application = ThisApplication
oInvApp.ContentCenter.TreeViewTopNode.ChildNodes(9).ChildNodes(1).Families(1).TableColumns.Add(InternalName As String,
																								DisplayHeading As String,
																								DataType As ValueTypeEnum,
																								[Units] As Variant ,
																								[Expression] As Variant ,
																								[PropertySetId] As Variant ,
																								[PropertyIdentifier] As Variant )

 

Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor

LinkedIn | My free Inventor Addin | My Repositories

Did you find this reply helpful ? If so please use the Accept as Solution/Like.

EESignature

0 Likes
Message 5 of 5

mikejones
Collaborator
Collaborator

I have exactly the same issue with creating new families in content centre. It would be great to be able to import an XML or csv file that contained the new column names etc. It's such a ball ache doing this manually over and over again.

Autodesk Certified Professional
0 Likes