Identify Content Center Files or Custom Content Center Files

Identify Content Center Files or Custom Content Center Files

Anonymous
Not applicable
439 Views
1 Reply
Message 1 of 2

Identify Content Center Files or Custom Content Center Files

Anonymous
Not applicable

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.

 

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

adam.nagy
Autodesk Support
Autodesk Support

Why don't you want to use PartComponentDefinition object?



Adam Nagy
Autodesk Platform Services
0 Likes