Eplan Platform API
Eplan API / User Guide / API Framework / Scripts
In This Topic
    Scripts
    In This Topic

    You can run scripts in Eplan without having licensed the Eplan API. Scripts are executable program code, written in C# (language version C# 13, *.cs  files) or Visual Basic.NET (*.vb  files). Scripts always exist as source code. When you start a script, it will be loaded into the system, compiled and then executed. 

    For scripting, go to the ribbon item File > Extras > Interfaces. You will find the category Scripts.

     

     

     

    After calling File > Extras > Interfaces > Scripts > Run, a file dialog appears and a script file to execute can be selected. 

    Scripts are always compiled with the Roslyn .NET compiler. 

     Assemblies that can be accessed

    The following .NET Core assemblies can be used in scripts:   

    The following .NET Windows Desktop assemblies can be used in scripts: 

     

     Also these Eplan .NET 8 assemblies are referenced by default:

     

    There is no way to reference additional assemblies (.NET, Eplan or other providers) for scripting! 
    The feature to reference other assemblies is only available with the "Eplan API Extension" license and only for offline applications, add-ins and add-ons.