algorithmic modeling for Rhino
Hi there,
I've been trying to open "07_lattice_truss" example file however I can't get the C# code to run.
I've managed all the assemblies as instructed but I get the following error:
1. Object reference not set to an instance of an object. (line: 80)
Both .dlls appear to have been successfully imported.
Thanks in advance,
Charles
RStatSystem rs = ri as RStatSystem;
List<Line> slines = new List<Line>();
foreach(RStatBeam b0 in rs.Beams) { <------ line 80
if (b0.StiffnessMultiplier < 0.3) continue;
slines.Add(new Line(b0.P0.ToPoint3d(), b0.P1.ToPoint3d()));
}
A = slines;
Tags:
Hey,
To my knowledge, this error usually turns up when the data imported is Null, so there is nothing to reference. I've googled a bit and found Daniel Pickers' (Kangaroo) reply for the same problem. It seems that there is a bug in newer versions of grasshopper that fails to extract (and generate) internalized data from clusters.
I am currently installing visual studio -> rhinocommon sdk with hopes for a miracle. Will let you know how it turns out.
Gediminas,
Thank you very much for the input, I've also written to the developer with unfortunately no luck.
Please let me know you make any progress.
Thanks!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by