Hi all,
I want to sent my Doc Objects like InstanceObjects or Breps through API and save it in server, then read it and insert it to another document, so I need to convert it to and from stream,
but unfortunately I couldn’t find a good solution for that,
can you help with with it?
thanks.
You could use ToJSON and FromJSON. In between you could do all sorts of encoding to get it into the appropriate format for streaming.
Thanks Luis,
It’s just that as far as I know, InstanceObjects Can’t be converted to Json.
InstanceObjects derive from CommonObject, so they inherit the ToJSON method.
https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.instanceobject
1 Like
Thanks a lot.
1 Like