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: 

Identify Content Center Files or Custom Content Center Files

1 REPLY 1
Reply
Message 1 of 2
santoshr0114
294 Views, 1 Reply

Identify Content Center Files or Custom Content Center Files

Hello,

 

Greetings to all...

 

I need to check if the component is Content Center OR Custom Content Center File using Document Object (Not Using PartDocument)

 

Ex:

Dim oDoc as Document

Dim i as Integer

For i = 0 to ThisApplication.Documents.Count

      oDoc = ThisApplication.Documents(i)

      if oDoc.IsContentMember = True Then

            ----******------

      End If

Next

 

I need to add a check in the for loop, some thing like the If Condition marked in RED above. I don't want to use PartComponentDefinition.IsContentMember()

 

There is also another property Document.Type() which return the ObjectTypeEnum, but this always return kDocumentObject for all the Part Documents.

 

Regards
Santosh
1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: santoshr0114

Why don't you want to use PartComponentDefinition object?



Adam Nagy
Autodesk Platform Services

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

Post to forums  

Autodesk Design & Make Report