Though my experience with VBA for Excel has allowed me to do what I've needed so far, VB for Pro/E needs a push.
I'm starting simple: a dialog with 3 text fields to change Length, Width and Height (comprimento, largura, altura in Portuguese) of a prismatic part.
On the dialog side, I've managed to get 3 variables converted to Double from the text boxes.
Now I need to get those values to the corresponding parameters in the Pro/E model.
I (think I) need to "get the session" then "get the current model" in order to "get the respective parameters" and change them.
Can anyone help with the "getting the session" and "getting the current model" parts to get me back on track?
I am using Visual Studio 2008 Express if that makes a difference.
The VB text I used is in the attached text file.
Thanks in advance.
I am developing a manual of the Pro/ENGINEER VB API. The course will be offered sometime in February. Did you get problem solved? You can contact me at email@example.com.