t I am having trouble understanding is how do you relate the logic contained with this code back to a Grasshopper Param or Component and make it act like a number slider.
I assumed that you would inherit the class Grasshopper.Kernel.Special.GH_Slider like what Andrew Heuman does here: https://bitbucket.org/andheum/falsestarttoggle/src/446c2d1fbe83fa44f2d11ed5b1b77852587dd4cb?at=master
(David is this the best approach?)
Have you done this? Basically what I am asking is what is the code in the class PANDA_CONTROL_SLIDER_FORM? I can see that you are making an instance of it but that’s all I can see.
Is this the class that you are using to make a GH component that acts like a slider?
感谢您的帮助 ; )
…
Added by Anton Szilasi at 3:44pm on February 9, 2017
id to get it same with the other one. the code below Dim Att As IGH_Attributes = obj.Attributes 'Dim fieldInfo As Object = Att.GetType().GetField("InstanceGuid", System.Reflection.BindingFlags.Instance) att.NewInstanceGuid(x) x is the other one cluster's guid. I really made it. But the Terrible thing came. All the wire confused like picture below.
and the rhino and gh crashed after that.
I open it again,and find all the wire in canvas disappeared forever.
This not a kiding ,My boss is asking for the model tomorrow.
All the wire missed, It's a huge job to connect all the wires
I am crying for your help,Anyone can help me.Thank you.
I am regret not listen the your sdk words
'''''
Sub NewInstanceGuid(newID As System.Guid) Grasshopper.Kernel.IGH_Attributes 的成员 摘要: Generate a new instance GUID for the owner object. Do not use this overload unless you're > 1.95m and called David.
'''''''
The files is in the attach,I hope you can recover it. Thank you very very much.
…