Skip to main content
1-Visitor
September 19, 2018
Question

Data between VBAPI and toolkit

  • September 19, 2018
  • 1 reply
  • 2000 views
Hello

I have used VBAPI and from that application, we used to call toolkit application... Output from toolkit application was a text file having details extracted from models and again that text file is considered as input for subsequent operations into VBAPI.

Is it possible to pass data or objects between these two different customisation approaches i..e VBAPI and toolkit?

Regards
Ketan

1 reply

14-Alexandrite
September 20, 2018

You can do this by using Reflection. 

Register Toolkit DLL into Creo with Exporting C++ Methods. You can call Exported methods from VBA

 

Refer https://stackoverflow.com/questions/19214209/calling-c-function-from-excel-and-vba-using-dll-created-in-c 

1-Visitor
September 20, 2018
This could be one possible solution. I will try this later on. What I wanted to convey is something different. My source code is not in a single solution. I just want to pass argument to dll while calling registered unlocked dll from VBAPI. In this scenario, I need to pass selected object of VB to toolkit dll argument..
17-Peridot
September 20, 2018

Hi, Ketan.

 

Take a look at

ProArgument and Argument Management
Use the data structure ProArgument to pass application data to and from tasks
in other applications.