Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding custom properties to standart parts (bolt, sreew)

10 REPLIES 10
Reply
Message 1 of 11
mucip
465 Views, 10 Replies

Adding custom properties to standart parts (bolt, sreew)

Hi,

I need to add some properties like part code and some other informations. But it's readonly unfortunatelly. I can not do it within Inventor app.

Before I could do this 3th party VB program within Inventor. But I don't know why It's impossible now in Inventor 2018?

 

Regards,

Mucip:)

10 REPLIES 10
Message 2 of 11
A.Acheson
in reply to: mucip

Hi @mucip 

 

You need to have made a custom Content center library then add the iproperty columns you need. Yes the standard CC files are read only after creation so you must drive the iproperty changes from the top down in the Library and the family table. Are you using a custom CC Library?

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 11
mucip
in reply to: A.Acheson

Hi @A.Acheson ,

No. I use standart CC library.

Before When I use any part from CC it comes to "Default Conten Center files" directory. 

Than I can assign custom properties with VB program. But I can not assign now.

I think I need to use custom libraries. I will search about it.

Message 4 of 11
mucip
in reply to: A.Acheson

Hi @A.Acheson ,

I created Custom Content Center but still I can not add custom properties to inserted standart part unfortunatelly. 😞

 

Regards,

Mucip:)

Message 5 of 11
A.Acheson
in reply to: mucip

So if you created the custom library, Did you add the iproperty column and map the iproperty in the family table? You need to then refresh the existing placed part in the assembly.

CC Files when created go into a read only folder. This is why you can't modify manually/by code.  However, If you move the file temporarily to a writable folder you can make changes and move back. I would caution this approach as the correct workflow is  to push the iproperties from the table to the part. It is clear to other users and yourself where the information comes from a year from now or anytime in the future. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 6 of 11
mucip
in reply to: mucip

Hi,

It's been little time. Sorry.

I see you can add extra part code, name according to my company part code notation in SolidWorks. The sama thing must be in Inventor too. For examle The company part code for M10-20 bolt is 2010101 in our factory. Well if someone add this bolt to its assembly the bolt part number must be 2010101 .

There are 3 users on the network from same file locations.

Any advice please?...

Regards,

Mucip:)

Message 7 of 11
A.Acheson
in reply to: mucip

Yes this type of change should be done in the content center family table assuming the content center library files are in the network in one place and the contenct center files are also on the network. If this is the case then you only need to update once and then hit the refresh button in the assembly where the bolt is placed. The part number is then synced from rhe livary to the individual file.  See this help article here and video here.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 8 of 11
mucip
in reply to: A.Acheson

Hi,

This is very good information thanks. I tried according to video which you linked.

But I need to add some extra more custom data to part. And in Family Table Editor, you can Add data ccolumn but not like Standart custom data like ipt part file? And also you can not give name to contents center part. There is not eny description column.

My best choice is to reach ipt file custom data. Because I reach these data  via visual basic api. And it's little bit difficult to get info from Familiy data despite of custom fields data.

 

In some how I can reach and write/read custom data in content center ipt files but I can not do now unfortunatelly?

 

Regards,

Mucip:)

Message 9 of 11
A.Acheson
in reply to: mucip

Have you an image of what you need to change and where the files are located? If you have custom CC libraries you can actually change the family table data via API. It is much harder than manually obviously but can be done. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 10 of 11
mucip
in reply to: mucip

Hi,

I need to add the custom fields which in attached picture. I have same procedure to get custom fields in all part or assembly or part content files. This is the best way.

If I can not write all these custom fields in to contents folder part than I need to change the code and it's not good way for me...

 

By the way default content center files is located in network drive in my situation. And all other users using same location.

 

Regards,

Mucip:)

Message 11 of 11
A.Acheson
in reply to: mucip

Ok so judging by your picture these are all custom iproperties. In this case these should be all set up within each CC family that needs them.  My preference is to do this manually in previous links.  If your search this forum you will find methods to do this by VBA programme but this is a complicated method. 

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report