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: 

Recognize Custom Content Center Part

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
mbrandwijk
1191 Views, 2 Replies

Recognize Custom Content Center Part

I am looking for a way to recognize a custom content Center part inside Inventor. The way I see it, I would like to fill a custom property with a value so I can set a seperate category inside Vault Pro for a custom Content Center part.

What I found is the following:

CustomContentCenter variabele: ContentCenter{844FDDD7-2E90-4E4C-8868-134CEAEDC078}
    IsCustomPart    1

Is there any way that I can get this information inside an Custom Property??

2 REPLIES 2
Message 2 of 3
jdkriek
in reply to: mbrandwijk

From Inventor 2011 onward, API provided a direct flag to indicate if the part is Standard or Custom: 

 

PartComponentDefinition.IsContentMember

 

Dim oPart As PartDocument
oPart = ThisApplication.ActiveDocument
Dim oPartCompDef As PartComponentDefinition
oPartCompDef = oPart.ComponentDefinition
    If oPartCompDef.IsContentMember Then
        iProperties.Value("Custom", "IsCustomPart") = "Yes"
    End If

 

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 3
awatt
in reply to: jdkriek

A follow-up question:  Is the IsContentmember property read-only?

 

I once had someone create a new part in a content center file after erasing all the original part geometry.  Essentially, they used the content center part as a template file.

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

Post to forums  

Autodesk Design & Make Report