Grasshopper

algorithmic modeling for Rhino

Runtime error (MissingMemberException): 'Guid' object has no attribute 'append'

Hey,

What's up Gh/Py GUIDs? I've been having serious hangups 'rs.Area' as well as 'rs.SurfaceArea' working sometimes then, over iterations, giving me a GUID error. 

Can someone give me an overview over the differences between these types of classifications?:

A: "8e3583a7-05b6-4af6-8afa-48c6c819f2eb"

B: "[<System.Guid object at 0x0000000000008E84 [541e3145-3ee1-4154-be24-db724e504d77]>"

C: "<Rhino.Geometry.Brep object at 0x0000000000008E86 [Rhino.Geometry.Brep]>"

Thanks in advance

Views: 1575

Replies to This Discussion

Hi Joe,

let's see,


  • it looks like the first one is a string (a piece of text), that contains a representation of a Guid
  • the second one is an instance of a Guid
  • the third is a geometry object

RhinoCommon instances are objects that represents geometry models. When they are added to a document, a Guid uniquely identifies them.

You can read more if you click on the GhPython component, and choose Help.

The rhinoscriptsyntax module has a few rs.coerceXYZ() functions to get objects from Guid, and scriptcontext.doc.Object.AddXYZ() can be used to add data types to the document and get a Guid.


See also: similar discussions.

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

great, I've been using coerce commands with a bit of success. However, scriptcontext.doc.Object.AddXYZ() I have not known about.. Is there a directory for RhinoCommon like there is for RhinoScriptSyntax? I've seen many discussions around Rhino Common, but no tutorials or briefs on what it is or how to use it. Does it not work with Python? If there is a link to some page for help, I would greatly appreciate you pointing me to it.

Thanks a lot 

You can see an overview at:

http://developer.rhino3d.com/

Also, if you have not already, please read the GhPython help within Grasshopper and tell me what it is missing :) Thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service