Traversing design with suppressed components

Traversing design with suppressed components

Anonymous
Not applicable
348 Views
3 Replies
Message 1 of 4

Traversing design with suppressed components

Anonymous
Not applicable
How can I traverse a design that has suppressed parts/subassemblies working with Inventor 11 API? ReferencedDocuments collection does not contain suppressed components.
If I have to change active LOD representation of the assembly to see the suppressed parts - how can I do it?

Thanks,
Ilya
0 Likes
349 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Instead of querying the ReferencedDocuments property, use the
ReferencedDocumentDescriptors property instead. This property returns
reference descriptors for suppressed components as well (with
DocumentDescriptor.ReferencedSuppressed property set to True for suppressed
references).

To change the active LOD representation, use
AssemblyDocument.ComponentDefinition.RepresentationsManager.LevelOfDetailRepresentations
property. Find the LOD representation of interest and call the Activate
method on it.

Sanjay-

wrote in message news:5245855@discussion.autodesk.com...
How can I traverse a design that has suppressed parts/subassemblies working
with Inventor 11 API? ReferencedDocuments collection does not contain
suppressed components.
If I have to change active LOD representation of the assembly to see the
suppressed parts - how can I do it?

Thanks,
Ilya
0 Likes
Message 3 of 4

Anonymous
Not applicable
Hi, Sanjay, and thanks for speedy reply.

I have tried to implement the solution and encountered some problems.
I get "unspecified error" exception (0x80020003) when I try to access ReferencedDocument property of DocumentDescriptor if that document is suppressed (it works fine on unsuppressed docs)

How can I access Document object of the suppressed component?

Ilya
0 Likes
Message 4 of 4

Anonymous
Not applicable
Since the reference is suppressed, you won't be able to access the
ReferencedDocument (it does not exist in memory at all). The
DocumentDescriptor.FullDocumentName property returns the document that is
being referenced (and is currently suppressed).

Sanjay-

wrote in message news:5247270@discussion.autodesk.com...
Hi, Sanjay, and thanks for speedy reply.

I have tried to implement the solution and encountered some problems.
I get "unspecified error" exception (0x80020003) when I try to access
ReferencedDocument property of DocumentDescriptor if that document is
suppressed (it works fine on unsuppressed docs)

How can I access Document object of the suppressed component?

Ilya
0 Likes