Can I use VB to create content center parts and family tables?

Can I use VB to create content center parts and family tables?

JBEDsol
Collaborator Collaborator
357 Views
1 Reply
Message 1 of 2

Can I use VB to create content center parts and family tables?

JBEDsol
Collaborator
Collaborator

So I'm somewhat familiar with VB for IV.  However I'm kind of clueless as to how to access Content Center parts.  I'm trying to replicate the parts but each part requires me to add several custom properties and columns.  This gets quite tedious when I have hundreds of parts to create, all redoing the same thing over and over.  I have bits of code to do things like add iProperties to a part but what I need to do is

 

copy an item>

add the part to an assy>

update w/ custom properties>

replace family template>

add new columns that associate the corresponding iProperties>

add formulas to column properties. 

 

If I can figure out how to access these elements of Content Center I'm pretty sure I can program this.  But I don't know how or even if access is possible.  Any of these elements I can automate would save me worlds of time.

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

A.Acheson
Mentor
Mentor

@JBEDsol 

Found this VBA form driven custom column adder last year. It works brilliant. I even managed to print the list of all content parts to excel. I am a fairly new beginner to coding but once I saw the speed that it worked I had to try and get it up and running. 

See message 10of 11, that

will get your part way there.

 

https://forums.autodesk.com/t5/inventor-forum/create-iproperties-for-all-parts-in-content-center/m-p...

 

 

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes