TCDRC - Installing TC Macros and Addons (for users)

This section covers installing and running Macros and Addons from a user perspective.  

Differences between Macros and DLL type Addons

Installing and Running New Macros

Installing and Running DLL type Addons (Custom Tools, Regens Palettes etc)


Special Notes


Differences between Macros and DLL type Addons

Macros

Macros are written using the VBA editor supplied with the Pro versions of TurboCAD, and can be saved as a *.tcm file for distributing to others. They tend to be directly related to repeatative drawing tasks, but are not limited to this.

It is important to note that Macros are associated with individual Drawings, so it is not possible to have create an Application level Macro that is available at all times. However it is common practice to place them in templates so that they are automatically associated with all new drawings based on that template. You can associate as many Macros as you wish to a given drawing or template.

Macros have to be 'activated' manually each time the drawing is opened, after which they remain available on a special toolbar while the drawing remains open. The macros can not be moved from this toolbar.

DLL type Addons

DLL type Addons are written using external programming languages such as Visual Basic, C++ or Delphi, and are distributed as *.dll files. They are really application extentions that function in a way that is very similar to TurboCAD's native tools, though there some small differences.

DLL type Addons  tend to have much broader scope than macros, and include custom tools, graphic 'generators', filters, palettes and ties.

Unlike Macros, DLL type Addons work at the Application level, and are thus available at all times, with no activation procedure required, though they may be disabled at different times according to the current state of TurboCAD. Once installed, custom tools can be moved between normal TurboCAD tools using Customise.

 


Installing and Running New Macros (mostly a direct swipe from the manual)

1. To install a macro unzip if required and copy the macro (.tcm file) into the Macros folder* of your TurboCAD installation.

* Actually you can install it anywhere, then browse to the appropriate folder in step 3. below. But for convenience they are usally put in the Macros folder

2.   In TurboCAD, Select Tools / VBA Macro / Macros. The Macros window will open, displaying the macros associated with the current drawing, if any.

3.   Assign a name for the macro in the Project Scope field (such as Bolts) and click Add.

 

4.   The Open TC Macros Project window will open to the Macros folder by default. Select the desired macro (for example, Bolt.tcm).

5.   You return to the Macros window, and all routines found in the selected macro are displayed in the right-hand box.

 

6.   You can repeat steps 3-5 to add more macros, such as Nuts.tcm.

7.   Select the desired macro routine and click Run, and the selected routine will be executed (check the macro documentation for it's function .

 

Tip:  You can click Step to run the macro in step-by step (command tracing) mode.

8.   Once macros have been added, they become available in a tabbed toolbar for future use and can also be accessed directly from the Tool / VBA Macros menu.


Installing and Running DLL type Addons (Custom Tools, Regens, Palettes etc)

As noted above, the following is ageneral procedure. Always check the addon's documentation in case it has specialised install procedures.

1. Shut down TurboCAD if it is running

2. In order to work correctly, DLL type Addons have to be installed in the appropriate folders within the TurboCAD installation

Unzip if required and copy the dll into the appropriate folder
 
3. Restart TurboCAD. The addons should now be available - follow their documentation for instructions on how they are used, as general rules