***hi new script component in Rhino8 in this case cannot offer the same quality as Rhino7:In the next command suggestion
A = Component.Params.Input[1].VolatileDataCount != 0;
in Rhino 7:
in Rhino 8 Beta:
***hi new script component in Rhino8 in this case cannot offer the same quality as Rhino7:In the next command suggestion
A = Component.Params.Input[1].VolatileDataCount != 0;
in Rhino 7:
Uh thanks for reporting this. I filed it here and will get it fixed
RH-77879 C# can not autocomplete ScriptInstance properties and their members
Hi @eirannejad
don’t fix this bug yet?
Component…Api . is very useful in c#
I hope fix it immediately
RH-77879 → this report is open to the public and you can check the status at any time.
-wim
thanks i hope fix this option to script editor immediately ( beacuse Auto Complate it very useful and find api in RhinoApi for each code is very difficult)
this. Component.x....... command(...)
hi @eirannejad @Alain
RH-77879
not fixed yet!
but:
seems in this code suggestion auto will fix:
using Rhino;
using Rhino.Geometry;
using Grasshopper;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Data;
using Grasshopper.Kernel.Types;
using System.Collections.Generic;
using System.Reflection;
#endregion
private void RunScript(string pluginCategory, ref object a)
{
Component.Name="test";
// Get all loaded assemblies
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
// Get all types in the assembly
var types = assemblies[0].GetTypes();
Grasshopper.Kernel.GH_Component component = Activator.CreateInstance(types[0]) as GH_Component;
a=types;
}
RH-77879 is fixed in Rhino 8 Service Release 9