예제 #1
0
        public object Clone()
        {
            var handler = Handler is ICloneable cloneable?cloneable.Clone() as IExternalEventHandler : Handler;

            RevitTask.Log($"{handler?.GetName()} cloned from {Handler.GetName()}");
            return(new FutureExternalEvent(handler));
        }
예제 #2
0
 protected override ExternalEvent Handle(UIApplication app, IExternalEventHandler parameter)
 {
     RevitTask.Log($"creating ExternalEvent for {parameter.GetName()}");
     return(ExternalEvent.Create(parameter));
 }
예제 #3
0
 private void LogRequest(ExternalEventRequest request)
 {
     RevitTask.Log($"{Handler.GetName()} {Enum.GetName(typeof(ExternalEventRequest), request)}");
 }