@JBlackhole wrote:
I am simply making my 1st step in the CREO automation capabilities.
Assume I have a .vb file, can I run the file 'as-is' so that the programme is "executed"? I do that a lot with another CAD package with which I can simply "play" the file. No need to create a .dll or .exe
Hi,
https://community.ptc.com/t5/Customization/How-startup-application-with-VBapi-in-Creo-Parametric-2-0/td-p/55347 tells you that:
The way the VBAPI works is that an external program is started and either starts Creo or finds a link to a running copy of Creo. The external program adds the button to the menu and then waits using a Listener to report that the button was pushed. When the button is pushed the external program does whatever it's told to do when the button is pushed.
This means that you cannot put your VB-code directly into Creo and execute it.
You must create "external application". I think you can put your VB-code into MS Excel and execute it.
VBAPI User Guide contains Example section ... you can test set of examples which are available in Creo installation.