Grasshopper

algorithmic modeling for Rhino

I came into a big trouble about gh in my project. I have used a couple of days to complete a ghx file.But the ghx file was crashed by my stupid vb code. I want use code to change a cluster's insctanceid 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.

Views: 420

Attachments:

Replies to This Discussion

Hmm.. your file opens just fine for me, but it doesn't include half as many components as your screenshots. Any chance your file autosaved?

Sorry,i get a wrong attach. The right one has been uploaded. Thank you for your kindness reply.

Sorry I upload a wrong attach. See below.

 

Attachments:

It is not recoverable. The guids for instances and sources are mismatched, meaning all source-target connections are untraceable.

I am going to crying

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service