Overview
With the release of ETABS v22.0.0 , it is now possible to create plugins for CSI products using .NET 8 . To learn more about the .NET 8 platform , please see What's new in .NET 8 . This example will guide a developer through creating a simple .NET 8 plugin for ETABS v22.0.0 using the C# programming language. For an example plugin using .NET Framework, please see NET Framework Plugin Example .
Walkthrough
Prerequisites
This walkthrough uses Microsoft Visual Studio 2022 and the .NET 8 SDK. ETABS v22.0.0 must be installed on the development computer.
Procedure
- Selecting C# as the language, create a new project of type Class Library. Ensure that the selected project type targets .NET or .NET Standard, not .NET Framework.
2. For convenience, set your project name to the desired name of your plugin.
3. Select .NET 8.0 as the desired Framework
4. Once your project is created, add a reference to the CSI API library. This will be located in the installed ETABS directory, typically C:\Program Files\Computers and Structures\ETABS 22\ . If you are making a plugin only for ETABS, select the ETABSv1.DLL . If you'd like your plugin to be compatible with other CSi products, such as SAFE or SAP2000, use the cross-product API library, CSiAPIv1.DLL .
5. Rename the Class1.cs file to cPlugin.cs and paste in the following code