Overview

Most Tsl developers are aware of the callDotNet2 function. This allows execution of a .NET method by referencing the .dll path, and the appropriate namespace. A Map is passed to the method as input, and a 2nd Map argument provides a return path for data.

This has many uses, of which dialog input is only one (although arguably this is the most useful). The Visual Studio Project Template is designed around dialog development, but this is not strictly required. Any callDotNet2 method can be developed with the Template; worker libraries to make web calls, parallel libraries for complex mathematical functions, file system searches… The Project created has standard hsbcad references in place, just make sure to follow the guidelines on where to locate the Project

If you haven’t already installed the Project Template (VS 2019 only) you can download it here.

The exact mechanics/syntax of callDotNet2 are detailed in the Tsl Help. Here is some of how the Project Template jump-starts development.

You can also see the included “Sample.dwg” file, it has example Tsls for both Map and Plugin based projects.  There are only 2 Styles created in Styles.xaml, but this is an easy spot to create your own if needed. Simply base your styles on the hsb d…

You can also see the included “Sample.dwg” file, it has example Tsls for both Map and Plugin based projects. There are only 2 Styles created in Styles.xaml, but this is an easy spot to create your own if needed. Simply base your styles on the hsb default Styles to enable translation.