Design Accelerator creates quite simple assembly structure – one assembly with parts only.
DA assembly and parts always have the property set "FDesign",
its internal name is “{6CD3181A-0C7D-41aa-BDB3-969A9B72E1BB}”.
Shaft sub-assembly component should have the attribute “Data“ from the attribute set "FDesign". It contains all important information about shaft component in XML format. You should be able to find all information you need in this xml string.
The following vba sample prints this attribute value to the immediate window.
Sub Explore_DA_Shaft_Assy()
Dim oAsmDoc As AssemblyDocument
Set oAsmDoc = ThisApplication.ActiveDocument
Dim oAsmDef As AssemblyComponentDefinition
Set oAsmDef = oAsmDoc.ComponentDefinition
Dim oOcc As ComponentOccurrence
Set oOcc = oAsmDef.Occurrences.Item(1) 'shaft subassembly
Dim oAttr As Inventor.Attribute
Set oAttr = oOcc.AttributeSets.Item("FDesign").Item("Data")
Debug.Print oAttr.value 'print XML data
End Sub
If you are not familiar with Inventor attributes, the following overview could be useful:
Introduction to Attributes
http://modthemachine.typepad.com/my_weblog/2009/07/introduction-to-attributes.html
Best regards,
Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network