Grasshopper

algorithmic modeling for Rhino

Try switch to C# from python (still a big noob) on a simple example some errors occured

Hi,

since i am still a big noob in python i will switch to c# cuase i see some advances, I prefer to switch now on a early point.

I tried to rebuild a tiny script i made in python in c# and it gave me some questions.

I want to loop with a foreach loop trough a list of points do i have to make a list before or is it possible to use them coming in from  a noed i set the access to list?

Also i dont understand why no plane is created. How do i need to feed the points in?

And why is c# expecting open parens in line 88 and 86?

Hope its not to much at once, probably i should try a few less steps to get the problems solved one by one, just hoped it would be easier and sometimes just a parentesis is missing or some format stuff, so maybe it is not so much i really cant say.

If anybody has the time and feels he wants to help it would be nice on the other hand i understand cause of the amount of chaotic questions.

Regards!

Views: 545

Attachments:

Replies to This Discussion

Hi Tom,

just had a look, cause i am at work right now. But it looks great!Thanks for commenting it so detailled!

Have a nice day!

Hi Tom,

had a closer look this morning. Do i understand it right that i can create new list

instead of:

List<Line> lines = new List<Lines>();

with:

var lines = new List<Lines>();

I really like the autocomplete in the for loop, thanks for this tip!

Tried to make a set of lines between 2 curves, appling the things i understand so far from what you wrote down in the comments.

Not sure if i understood the thing with the overload and the array.

Will open a new thread for this in a few moments.

I begun to watch the yt series from Señor Pflug you recommended once, i really like it cuase he starts from the very beginning and explains very detailed, but still struggeling with the easiest tasks.

So thanks for your time and have a nice day!

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