Please enable JavaScript to view this site.

TerraScan User Guide

Navigation: Batch Processing Reference > Macros

Run a macro on loaded points

Scroll Prev Top Next More

Run a macro on loaded points

Not Lite

You can execute the active macro on the points that are loaded in TerraScan. To run the complete macro, select On loaded points command from the Run pulldown menu in the Macro dialog.

You can also execute a macro by entering a key-in commandBentley CAD or SpaccelSpatix, such as:

scan run macro modelkey.mac

which would read and execute the file MODELKEY.MAC. If no directory is specified in the key-in command, the application searches the macro file in the directory specified in the TSCAN_MACRODIR environment variable in the Configuration Variables for Bentley CAD platforms definition.

A macro can be executed step-by-step on loaded points using the Step button in the Macro dialog. This is useful to test the result of the separate processing steps when creating a macro.

After a macro has been executed on loaded points, the Macro execution window appears. It shows a report that lists all macro steps and a return value. The return value can be the amount of points that has been effected by the macro step or another value specifying the result of the macro step. If a processing step failed, the line in the report appears in red color. A definition of the return values for many processing functions is given in Section Function Prototypes.

The macro report can be saved as text file using the Save as command from the File pulldown menu or printed using the Print command from the File pulldown menu in the Macro execution dialog.

TerraScan User Guide   01.01.2024   © 2024 Terrasolid Ltd