您可以在EPLAN中运行脚本,而无需获得EPLAN API的许可。脚本是可执行的程序代码,用C#(.cs文件)或Visual Basic.NET(.vb文件)编写。脚本始终以源代码形式存在。当您启动脚本时,它将被加载到系统中,编译然后执行。
要进行脚本编写,请转到功能区项目文件 > 附加功能 > 接口。您将找到脚

After calling File > Extras > Interfaces > Scripts > Run, a file dialog appears and a script file to execute can be selected.
In scripts following assemblies can be used:
- System
- System.Drawing
- System.Windows.Forms
- Namespace System.Windows.Forms
- System.Net.Http
- Namespace System.Net.Http
- System.IO.Compression.FileSystem
- System.Xml.LINQ
- System.Xml
- System.Core
- Newtonsoft.Json
Also these EPLAN assemblies are referenced by default:
- Eplan.EplApi.Baseu
- Namespace Eplan.EplApi.Base
- Eplan.EplApi.ApplicationFrameworku
- Namespace Eplan.EplApi.ApplicationFramework
- Namespace Eplan.EplApi.Scripting
- Eplan.EplApi.Guiu
- Namespace Eplan.EplApi.Gui
- NameSpace Eplan.EplApi.Scripting
- Eplan.EplApi.MasterDatau
- Namespace Eplan.EplApi.MasterData
- Eplan.IdentityClient.Authentification
- Namespace Eplan.IdentityClient.Authentification