Eplan Platform API
Eplan.EplApi.ApplicationFramework Namespace / IEplAction Interface
Members Example

In This Topic
    IEplAction Interface
    In This Topic
    Interface declaration for an action. When an action is to be registered for an add-in (an assembly) in the system, this interface must be implemented by a class of the add-in.
    Syntax
    [Guid("83FAA39E-2215-3984-982F-29FFB4B3F5F2")]
    public interface IEplAction 
    [Guid("83FAA39E-2215-3984-982F-29FFB4B3F5F2")]
    public interface class IEplAction 
    Remarks
    Action names with "." are not allowed.
    Example
    Implementation of an action in an add-in
    public class NewAction: IEplAction
    {	
        public bool Execute(ActionCallingContext ctx)
        {
            // Add your code here
            new Decider().Decide(EnumDecisionType.eOkDecision, "NewAction was invoked!", "", EnumDecisionReturn.eOK, EnumDecisionReturn.eOK);
    
            return true;
        }
    
     public bool OnRegister(ref string Name, ref int Ordinal)
     {
         Name    = "NewAction";
         Ordinal = 20;
         return true;
     }
    Public Methods
     NameDescription
     MethodCalled by the framework when the action is to be performed.  
     MethodThe action can be registered under a name determined by the action and an overload level.  
    Top
    See Also