Grasshopper

algorithmic modeling for Rhino

Hi all,

I've recently started using millipede and it seems that all internalized inputs come up as null when trying to 'extract' (and also generate) them. I keep getting the Object reference not set to an instance of an object. (line: 79) error on the marked line.

private void RunScript(object ri, ref object A, ref object B)
{
RStatSystem rs = ri as RStatSystem;

List<Line> slines = new List<Line>();

foreach(RStatBeam b0 in rs.Beams) {

if (b0.StiffnessMultiplier < 0.3) continue;

slines.Add(new Line(b0.P0.ToPoint3d(), b0.P1.ToPoint3d()));
}

A = slines;
}

Also to be more clear, I'm attaching a screenshot.

Does anyone know a solution for this?

Best,

Gediminas

Views: 216

Attachments:

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service