We have written a VB6 program for non-Inventor users that uses the Autodesk Inventor Object Library from an install of the Inventor Viewer 2011-2012. The program collects drawing sets from a VaultMirror folder exported from the actual Inventor vault. In addition, the program exports assembly parts to a formatted Excel file for purchasing.
We thought that it worked fine but, have recently found an issue: the program reads and exports ALL items referenced in an assembly, not just items in the parts list. For a particular assembly that I am using to test with, there are seven items in the parts list but, 23 parts referenced in total in the assembly. So, we get an Excel export with 23 + line items and when plotting to pdf, get 23 pdf files instead of the seven that should be created.
We are using the ApprenticeServerComponent to open the file objects but, I can't find a parts list. I have reviewed a number of posted examples of accesing parts lists and opening ApprenticeServerDrawingDocument objects but, nothing seems to work. It is like I don't have access to all of the object types needed to make it happen.
Should I be trying to open an iam or idw to access the parts list?
Are there any very basic code examples available of accessing a parts list?
you need to place a partslist in a idw first. then you can access partslist from vb.
Can't find what you're looking for? Ask the community or share your knowledge.