Esempio n. 1
0
        private void ExecutionEvents_GraphPreExecution(Dynamo.Session.IExecutionSession session)
        {
            //session.

            if (InPorts[0].Connectors.Any())
            {
                // this.GetValue()
                // get parent
                // MessageBox.Show("There is an input! " + InPorts[0].Owner.GetValue(;
                //return new[] { AstFactory.BuildAssignment(GetAstIdentifierForOutputIndex(0), AstFactory.BuildNullNode()) };
            }
        }
Esempio n. 2
0
 private static void ExecutionEvents_GraphPostExecution(Dynamo.Session.IExecutionSession IExecutionSession)
 {
     //Dynamo.Events.ExecutionEvents.GraphPostExecution -= ExecutionEvents_GraphPostExecution;
     if (pH72NodeListCollector != null)
     {
         pH72NodeListCollector.RemoveAll(x => !x.Item1);
         foreach (Tuple <bool, string, H72Node> aTuple in pH72NodeListCollector)
         {
             aTuple.Item3.Save(aTuple.Item2);
         }
         pH72NodeListCollector = null;
     }
 }
Esempio n. 3
0
 private void ExecutionEvents_GraphPostExecution(Dynamo.Session.IExecutionSession session)
 {
     lastExecutionDuration = (TimeSpan)session.GetParameterValue(Dynamo.Session.ParameterKeys.LastExecutionDuration);
 }
 private void ExecutionEvents_GraphPostExecution(Dynamo.Session.IExecutionSession IExecutionSession)
 {
     Dynamo.Events.ExecutionEvents.GraphPostExecution -= ExecutionEvents_GraphPostExecution;
     Release();
 }
 private void ExecutionEvents_GraphPostExecution(Dynamo.Session.IExecutionSession session)
 {
     Executions++;
     this.OnNodeModified(forceExecute: true);
 }
 private void ExecutionEvents_GraphPreExecution(Dynamo.Session.IExecutionSession session)
 {
     Number++;
 }
Esempio n. 7
0
 private void ExecutionEvents_GraphPostExecution(Dynamo.Session.IExecutionSession session)
 {
     //index++;
     //text += index.ToString();
 }
        private void ExecutionEvents_GraphPreExecution(Dynamo.Session.IExecutionSession session)
        {
            var guid = GUID.ToString().Substring(0, 5);

            MessageBox.Show("Pre execution event of node " + guid + ".");
        }