cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

VBA Macros/API for Creo

VBA Macros/API for Creo

Mapkeys are pretty very useful to script many simple things in Creo. However they are limited as they don't offer more advanced tools like If-Then statements, variables, custom GUI's, etc. The problem with many/all of the existing Creo APIs is that they usually require IT help in trying to program Creo and IT usually knows very little about CAD. Solidworks and Inventor (and probably other 3D CAD software) have VBA Macros that let their users solve many of their own problems without needing IT.

 

Creo VBA Macros:

  • VBA Macros within Creo would be installed and ready to use by default in all versions of Creo. Most of the current Creo APIs require installing the APIs and turning on lots of different settings so new users struggle simply getting the API turned on. Many Creo users don't have permissions to install software on their computers or create system variables.
  • The ability to record Creo button clicks into VBA code. This is often a great starting point for users.
  • Use the free VBA Editor to easily edit the VBA code directly from Creo and easily create GUI forms/menus. VBA doesn't require users to compile code and users wouldn't have to buy/install software like Visual Studio.
  • VBA works great with Excel and should allow user to drive Excel or Excel to drive Creo.
  • VBA has a large online support. With VBA turned on by default, users could easily share code with each other or create YouTube videos to share with each other.
  • If Creo would have an official way to share VBA code/add-ins with the Creo community, PTC would also get good ideas for future Creo improvements.
  • The VBA macros help documentation should be easy to access and easy to understand with lots of example code.
  • Maximum functionality. Some of the current Creo APIs are fairly limited: the current VB API is limited only to asynchronous mode and fairly limited set of commands. Please provide enough functionality to be useful or the maximum functionality previously allowed in other free APIs.
  • Combining VBA macros and Mapkeys would be awesome.
  • Ability to write custom ModelChecks in VBA macros would be awesome.
2 Comments
Visitor

I just went through the ordeal of beginning to learn the API world/mess of Creo. I settled on the Jlink API after reading some posts online, but I think it won't be supported in Creo 5, so I stopped and i'm waiting to see what will come up. A complete and easy to use VBA API with COM support and decent documentation would be a minimum I think. PTC, plz have a look at AutoIT's documentation and learn how it's done! It is an open source code for christ sake and your solution is so far behind it's not even funny!

I learned how to use AutoIT in a matter of days and was able to write a script that took control of Excel and Inventor to update thousands of drawings (update revision, change revision symbol, change drawing frame, change notes, etc) after only a few dozen hours of work. I cannot even imagine how much time it would take to do the same with Creo... The Inventor VBA API was "free" (included) with full fonctionnality as far as I can tell and has very good documentation (light years ahead of what PTC offers now for JLink and VBA).

@sparadis Definitely agree. Not sure if I should simply the idea above (too much text?) but Solidworks and Inventor are way ahead here. Here's the Inventor Store where people can share code. And here's the out of the box, easy/ready to use VBA Macros/Editor in Inventor.

Inventor VBA Macros.jpg