Grasshopper

algorithmic modeling for Rhino

RHINOCOMMON - Group Name Retrieved Form Document Case Sensitive?

It appears that when retrieving a string representing a group name from an active rhino document using RhinoCommon, the case of the string is ALWAYS uppercase.

 

For instance, when  I assign a group called test, when I try and retrieve objects contained in that group, the name returned by the grouptable function is ALWAYS uppercase. Hence I get an error as I am expecting test to be returned and not TEST

 

Is this correct?

 

For example;

 

Dim rcRhinoGroupTable As Rhino.DocObjects.Tables.GroupTable

rcRhinoGroupTable = Rhino.RhinoDoc.ActiveDoc.Groups

dim strGroupName as string = rcRhinoGroupTable.GroupName(0)

 

strGroupName is always in an UPPERCASE format

 

thanks

 

Views: 518

Replies to This Discussion

If I run the following code in a VB script, I get a properly cased groupname:

A = doc.Groups.GroupName(0)

Can you repeat that?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
David, sorry, you are right. I checked my code and I was explictely setting the input string of my input parameter results to uper case. You are correct.

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