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??
Solved! Go to Solution.
Solved by jdkriek. Go to Solution.
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
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.