TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software’s can be used with TurboCAD.


Running a VBS macro automatically
Read 1105 times
* October 30, 2014, 05:08:04 AM
Hi Guys

I've done a few VB scripts using the Tcw17 Macro Recorder.
 
I would like to know if and how to execute a macro recording directly from a Delphi application.

For Example.
I've got a square
W: 100 x H: 100

In Delphi I have a Button that says "Draw Square"

This button must then
Spawn TurboCad
Open a New Blank Drawing
Open DrawSquare.tcr
Run DrawSquare.tcr

I've searched around a bit and found IMSIGX_TLB.Macro
But I have no Idea what parameters to pass or if it will even do what I want it to do.

Any Advice?

Tanks
Dewald Vermaak
« Last Edit: October 30, 2014, 05:09:45 AM by DewaldV »

Logged