Grasshopper

algorithmic modeling for Rhino

Hello,

I'm working on a .gha library and when I build it and set up to Grasshopper only part of the components shows up.

Rhino gives me the following error: 

Path: C:\Users\Márcio\Documents\Visual Studio 2015\Projects\NFDM\NFDM\bin\NFDM.gha
Exception System.FormatException:
Message: GUID should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

I checked all GUIDs that I generated in Visual Studio 15 and all of them follows the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx format.

Any idea of a solution?

Thanks,

Márcio

Views: 756

Replies to This Discussion

That error message is pretty specific and I have no reason to doubt its veracity. You can either collect all the guids, copy them into a GH text panel and then plug that into a GUID parameter, that should tell you which ones are incorrect.

How do you generate your GUIDs? I hope you're not typing them in by hand...

How do you generate your GUIDs? I hope you're not typing them in by hand...

...unless you own a monkey and let it type for you. 

The GUID constructor which let's you create GUIDs with string cannot parse anything which is generated by the Create GUID tool from VS.. not even the registry format of a GUID which is "{guid here}". It might be that you have to drop those brackets/format the string properly.

The GUID constructor which let's you create GUIDs with string cannot parse anything which is generated by the Create GUID tool from VS.. not even the registry format of a GUID which is "{guid here}"...

The error was exactly this. I removed the brackets and everything turns fine.

Thanks for the reply!

Really? My libraries all use "Registry format" and it's always just fine. 

Yeah me too, the curly braces have never been an issue.

Given the Andrew's print screen, that might be a difference between VS for VB and C# (I use VB).

No, both languages eventually call the Guid type constructor which is implemented only once. There's no special .NET flavour for C# and VB. 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service