Grasshopper

algorithmic modeling for Rhino

Hello,

I'm trying to assign some accidental loads as mass to Natural Vibration analysis, I wrote a short script trying to retreive the PointLoads from the Disassemble Mesh Load component and return the load vectors from it:

private void RunScript(object x, object y, ref object A, ref object B)
{

Karamba.Loads.Mesh_PointLoad load = (Karamba.Loads.Mesh_PointLoad) x;
A = load.position;
B = load.force;

}

However, I got this warning: 

1. [A]Karamba.Loads.Mesh_PointLoad cannot be converted in [B]Karamba.Loads.Mesh_PointLoad. The type A origins from 'karamba, Version=1.14.0.0, Culture=neutral, PublicKeyToken=null' in context 'LoadNeither' in a bytes matrix. Type B se origins from 'karamba, Version=1.14.0.0, Culture=neutral, PublicKeyToken=null' in context 'LoadFrom' at 'C:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\karamba.gha'. (line: 115)

Any ideas on how to solve that issue or a easier way to achieve what i'm trying to do?

Views: 185

Replies to This Discussion

Hello Márcio,

it seems as though the Karamba-library has been loaded twice.

Try the following: In the Rhino text window type 'GrasshopperDeveloperSettings' and hit 'Enter'. Then enable 'Memory load *-GHA...' and click on 'OK'. Unload and reload Grasshopper, then try your script again.

Via 'Help/About/...' it is possible to set this option for Karamba only. This might be necessary since some plug-ins do not work with the 'Memory load...'-option enabled.

Best,

Clemens

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service