EPLAN Events
Anbei eine Auflistung von Events, auf welche man sich per API & Script aufschalten kann.
Beispiel
Beim Projekt-Schließen wird die Action ausgeführt.
using System.Windows.Forms; using Eplan.EplApi.Scripting; public class MyEventHandler { [DeclareEventHandler("onActionStart.String.XPrjActionProjectClose")] public void Action() { MessageBox.Show("Ich kann Scripten!"); return; } }
Eplan.EplApi.OnMainEnd
Send when the Main End starts.
Eplan.EplApi.OnMainStart
Send when the Main Start is done. This is when a mainframe is available. The event is not send when the application is started in offline modus or to execute an action.
Eplan.EplApi.OnPostOpenProject
Project management: After opening a project
Eplan.EplApi.OnUserPreCloseProject
Project management: Before closing a project
Ged.Redraw
Force a Redraw for the GED
NCSettingsMachineTools.Redraw
Force a Redraw for the NC Machine Tools settings tab
onActionEnd.String.*
Send after the end of any Action.
onActionStart.String.*
Send before the start of any Action.
Page.ConnectionDirty
Event when a Page gets dirty
Project.CablingDirty
Event when cabling gets dirty