How to get the information of "assembly statistics"?

Hi All!

    In order to synchron the assembly structure of SE and PSE of TC, I want to get the information of "assembly statistics" in solid edge st.  How can I do?





Posted by: fat kids
Post date: 1/24/2011 3:13:44 PM


RE: How to get the information of "assembly statistics"?

You process the AssemblyDocument.Occurrences recursively. While you're traversing the assembly structure, you keep a unique list of documents and gather what you need from there. It's very similar to BOM type reports. Use Solid Edge Spy to get a visual of what the object structure looks like.


Here's is the flow:

Get AssemblyDocumentLoop through AssemblyDocument.OccurrencesEach Occurrence object has an OccurrenceDocument property that will give you the SolidEdgeDocument pointer.If Occurrence.Subassembly is true, then you're dealing with a sub-assembly. That's where the recursion comes in.I attached some old example VB code that used to be installed in the Custom folder but I think they removed it post ST.



Posted by: Jason Newell
Post date: 1/24/2011 10:13:46 PM