rhino3dm.ArchivableDictionary

class rhino3dm.ArchivableDictionary

Represents a dictionary class that can be attached to objects and can be serialized (saved) at necessity.

See remarks for layout.

This is the layout of this object:

BEGINCHUNK (TCODE_ANONYMOUS_CHUNK) |- version (int) |- entry count (int) for entry count entries |- BEGINCHUNK (TCODE_ANONYMOUS_CHUNK) |- key (string) |- entry contents |- ENDCHUNK (TCODE_ANONYMOUS_CHUNK) ENDCHUNK (TCODE_ANONYMOUS_CHUNK)

static DecodeDict(jsonObject: dict[str, Any]) → dict[str, Any]

The dict an EncodeDict result describes (rhino3dm only).

Parameters:

jsonObject – A dict as EncodeDict returns it.

static EncodeDict(dict: ArchivableDictionary.EncodeDict.dict[str, Any]) → ArchivableDictionary.EncodeDict.dict[str, Any]

A dict of values as an ArchivableDictionary, in Encode’s JSON form (rhino3dm only; inverse: ArchivableDictionary.DecodeDict).

Parameters:

dict – A dict of strings, numbers, booleans, points, vectors, and other rhino3dm objects.