Hi! Just to make it clear, I never erased anything in the script.
It was the first time that I opened c# script in Rhino 6 and it was totally empty/blank space.
I copied and paste the default setting below;
sing System;
using System.Collections;
using System.Collections.Generic;
using Rhino;
using Rhino.Geometry;
using Grasshopper;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Data;
using Grasshopper.Kernel.Types;
///
/// This class will be instantiated on demand by the Script component.
///
public class Script_Instance : GH_ScriptInstance
{
#region Utility functions
///
Print a String to the [Out] Parameter of the Script component.
/// String to print.
private void Print(string text) { /* Implementation hidden. */ }
///
Print a formatted String to the [Out] Parameter of the Script component.
/// String format.
/// Formatting parameters.
private void Print(string format, params object args) { /* Implementation hidden. */ }
///
Print useful information about an object instance to the [Out] Parameter of the Script component.
/// Object instance to parse.
private void Reflect(object obj) { /* Implementation hidden. */ }
///
Print the signatures of all the overloads of a specific method to the [Out] Parameter of the Script component.
/// Object instance to parse.
private void Reflect(object obj, string method_name) { /* Implementation hidden. */ }
#endregion
#region Members
///
Gets the current Rhino document.
private readonly RhinoDoc RhinoDocument;
///
Gets the Grasshopper document that owns this script.
private readonly GH_Document GrasshopperDocument;
///
Gets the Grasshopper script component that owns this script.
private readonly IGH_Component Component;
///
/// Gets the current iteration count. The first call to RunScript() is associated with Iteration==0.
/// Any subsequent call within the same solution will increment the Iteration count.
///
private readonly int Iteration;
#endregion
///
/// This procedure contains the user code. Input parameters are provided as regular arguments,
/// Output parameters as ref arguments. You donât have to assign output parameters,
/// they will have a default value.
///
private void RunScript(object x, object y, ref object A)
{
}
//
// </Custom additional code>
}
but it returns me a bunch of error message.
Perhaps I need to buy a new pcâŚ