Grasshopper

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!

Views: 437

Replies to This Discussion

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. 


hacking services

WHO needs money??
need travel VISA??
PAYPAL AND BANK TRANSFER AVAILABLE
flight ticket available all destinations
ATM clone cards ready to ship all country
western union services back in the game
online shopping, ask me how it works
original FAKE or REAL id, dl, pp, skul docs available for all countries.

CONTACT ME NOW AT

watsap @0014242429194
icq @745215892
inbox @cleanhackdeals at gmail dot com

NB: dont waste your time to contact for fb, ig or twitter hack... few serious buyers needed

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