Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello,
I am trying to develop a few applications for ProE using VBA API. I am having some difficulties in using "BOMExportInstruction" to create a BOM for an assembly. I will appreciate if anyone can share some sample code for similar applications.
Thank you.
Parag Bhagwat
Hi Parag
I too am trying to develop VBA apps that link with Pro/E. I require examples of Family Table manipulation. I have found very very little on the internet... and most of what I have found is for VB - not VBA. PTC did not do a good job of providing clear examples in the documentation as most are focussed on VB.
Perhaps I will submit a support ticket to PTC requesting help. If I obtain any feedback, I will post it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I opened PTC Case C11021978 and received good example code. Reply text and attachment follow.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Tim,
Please find the attached VBA example application that would connect to an existing Wf5.0 / Creo Session, retrieves a part file PRT0001.prt from the working directory and accesses its family table content and displays the instance names one after another.
This is just to show how to access the family table info. Once an instance name is in hand, you should be able to retrieve the model in to session and do required operations as any other model.
Thanks,
Seshu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~