Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get assembly sub objects collection on C#

0 REPLIES 0
Reply
Message 1 of 1
mbongiovanni
520 Views, 0 Replies

Get assembly sub objects collection on C#

Hi everybody,

I am trying to get control over the objects of a DWF file using C# and, to be more precise, I'd like to hide/show them at runtime.

Giving you a quick code snippet, I do 

 

[...]

ECompositeViewer.IAdSection sec = (ECompositeViewer.IAdSection)CompositeViewer.Section;
ECompositeViewer.IAdContent con = (ECompositeViewer.IAdContent)sec.Content;

AdCommon.IAdCollection adobj = (AdCommon.IAdCollection)con.get_Objects(0); //all objects ???

[...loop over adobj...]

 

Now, the problem is that get_Objects(0) gives me only, let me say, first level objects, non all those nested into. For further clarification I attach this image:

 

Cattura.PNG

 

When I loop for object I can see only Arbor_Press, the whole assembly. How can I get into it to handle Arbor_Frame, Face Plate, ecc.? It looks trivial to me but I can't get rid of it!!!

 

Thank you in advance.

 

Michele.

 

PS Please redirect me anywhere if the topics has already been discussed. I've searched for it without success.

0 REPLIES 0

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

Post to forums