Grasshopper

algorithmic modeling for Rhino

Hi,

I would like to ask how can I return Guids as output values for Custom Component in Visual Studio.

I have attached printscreen and .txt files to show the code.

I would like to know how could I output guids from the main function.

For now I do not get any error, but the guid changes to zeros.

Thank you,

Petras

Views: 691

Attachments:

Replies to This Discussion

Hi Petras

You are getting 0000-... because new Guid() creates an emptry Guid. Nothing actually puts a different ID in. Assuming that you want to return the same ID as the one you input, you can use

if (!DA.GetData(0, ref GUIDs)) return;

just after the 

Guid GUIDs = new Guid();


Please note that one Guid is stored in a Guid variable. The GUID"s" naming is slightly misleading.

Giulio

--
Giulio Piacentino
geometrydepth.com design technology experts
info@geometrydepth.com

Thank you Giulio.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service