News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Can a macro be assigned to a user specified/created button?

Started by JoeM, January 20, 2022, 02:14:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JoeM

Hi all,

Subject says it all.  If you know how please reply.

Thanks,

JoeM

nikkipollard

#1
Macros I just open in the macro palette and run.

There doesn't seem to be an easy way to write a script for a button - like you do in Excel.
I have come across old tutorials for writing a tool saved as a .dll file in the sdk section,
https://forums.turbocad.com/index.php/topic,9565.msg56233.html#msg56233
but I have always been too scared to interfere with Turbocads menus.
So when I want a "button" I generally write the script using a windows form in Visual studio and add a shortcut, to the .exe file, to the task bar. I use an app called taskbargroups - to keep my custom TC scripts in one place in the taskbar.

with the taskbar groups app , I have been able to add short cuts to vbscripts with the extension .vbs to the taskbar
I modified the macro slightly so that it can be run from explorer and saved as .vbs - so that windows knows it is a vbscript


There is also this tutorial - but it is old so I dont know if it still works
https://throsn.tripod.com/tcadmain.html



Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h