SpeckleGrasshopper/BaseComponents/GhSenderCoreClient.cs
/// <summary>
/// Sets the default state for the remote controller. Will update parent stream too.
/// </summary>
Sets the default state for the remote controller. Will update parent stream too.
Sets the default state for the remote controller . Will update parent stream too .
private void SetDefaultState( bool force = false )
    {
      List<SpeckleInput> speckleInputs = null;
      List<SpeckleOutput> speckleOutputs = null;
      GetSpeckleParams( ref speckleInputs, ref speckleOutputs );
      DefaultSpeckleInputs = speckleInputs;
      DefaultSpeckleOutputs = speckleOutputs;
      if ( force )
      {
        ForceUpdateData();
      }
      else
      {
        UpdateData();
      }
      Dictionary<string, object> message = new Dictionary<string, object>();
      message[ "eventType" ] = "default-state-update";
      message[ "controllers" ] = DefaultSpeckleInputs;
      message[ "outputs" ] = DefaultSpeckleOutputs;
      message[ "originalStreamId" ] = Client.StreamId;
      Client.BroadcastMessage( "stream", Client.StreamId, message );
    }
private void SetDefaultState ( bool force = false ) { List < SpeckleInput > speckleInputs = null ; List < SpeckleOutput > speckleOutputs = null ; GetSpeckleParams ( ref speckleInputs , ref speckleOutputs ) ; DefaultSpeckleInputs = speckleInputs ; DefaultSpeckleOutputs = speckleOutputs ; if ( force ) { ForceUpdateData ( ) ; } else { UpdateData ( ) ; } Dictionary < string , object > message = new Dictionary < string , object > ( ) ; message [ " " ] = " " ; message [ " " ] = DefaultSpeckleInputs ; message [ " " ] = DefaultSpeckleOutputs ; message [ " " ] = Client . StreamId ; Client . BroadcastMessage ( " " , Client . StreamId , message ) ; }
Sets the default state for the remote controller.
Sets the default state for the remote controller .
force
bool