Grasshopper

algorithmic modeling for Rhino

Hello Karamba team,

I was having some errors with my C# scripts when upgrading to 1.0.3 or 1.0.4 and GH 09.0056.  I tried opening up the example script 'TenComElim', and the C# script in there does not seem to be working either.  I think it is a problem with the Model input - when I try to cast the input structural Model to Karamba.Models.Model, it returns that the input is not of type Model.  I also tried casting to type GH_Model - but it comes up with errors regarding some Types which Karamba implements but are apparently in an assembly which it claims is not referenced - in particular 'Types.GH_GeometricGoo, IGH_BakeAwareData, IGH_PreviewData'.  Is this due to the latest GH version?

Any pointers?

Cheers,

Lucas

Views: 703

Replies to This Discussion

Hello Lucas,

did you unhook 'Memory load *.GHA assemblies using COFF byte array' in the Grasshopper Developer settings?

Is the karamba.gha-file you reference in the script component the on which is used by Grasshopper? Are there maybe duplicates around?

Best,

Clemens

Thanks Clemens - forgot to re-check the COFF settings!

Regards

Lucas

Hi, 

I encountered a similar problem downloading the new GH and Karamba version. 

My C# script is giving the following error message "1. Error (CS0246): The type or namespace name 'm_mesh' could not be found (are you missing a using directive or an assembly reference?) (line 56)". 

First I had a lot of errors, but I could reduce it by downloading the new Hacker'sEssentials. There is still this 1 error. 

How to solve this? Does it also relate to the karamba.gha file?

Best

Lara

I find something that solved the problem, indeed regarding the karamba.gha file. 

I copied the .gha file used by the Karamba Hacker'sEssentials/C#/TensionElim folder, in the Grasshopper folder (the karamba.gha file existing there was more recent but was apparently not compatible with the other one). 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service