algorithmic modeling for Rhino
Hi,
What does the 'type_code' number represent in a .gh file? Does it represent the data format/type as in .../string/int32/float/...?
item {'name': 'Description', 'type_name': 'gh_string', 'type_code': '10'} Solve area properties for breps, meshes and planar closed curves.
item {'name': 'InstanceGuid', 'type_name': 'gh_guid', 'type_code': '9'} 4be2ebf1-7067-4257-af9a-c8ce50177a2e
item {'name': 'Name', 'type_name': 'gh_string', 'type_code': '10'} Area
item {'name': 'NickName', 'type_name': 'gh_string', 'type_code': '10'} Area
Where can I find a list showing what each code represents?
Any help is very much appreciated!
Tags:
Yes, the type_name is for human consumption, the type_code is for programmatic parsing of the xml. The codes are as follows:
1 = boolean
2 = byte
3 = int
4 = long
5 = float
6 = double
7 = decimal
8 = DateTime
9 = Guid
10 = string
20 = byte[]
21 = double[]
30 = System.Drawing.Point
31 = System.Drawing.PointF
32 = System.Drawing.Size
33 = System.Drawing.SizeF
34 = System.Drawing.Rectangle
35 = System.Drawing.RectangleF
36 = System.Drawing.Color
37 = System.Drawing.Bitmap
50 = GH_IO 2d point
51 = GH_IO 3d point
52 = GH_IO 4d point
60 = GH_IO 1d interval
61 = GH_IO 2d interval
70 = GH_IO line
71 = GH_IO bounding box
72 = GH_IO plane
80 = GH_IO version
Hi David,
Thank you for the exhaustive reference.
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