Add userdata to opennurbs archive with opennurbs for rhino 5

unhandled

#1

Hi
I want to add userdata to the opennurbs archive with c++ opennurbs for rhino5. Also I cant find the old opennurbs library sdk for download in order to search for example


(Dale Fugier) #2

Hi @Elizabeta,

See if this link works for you.

opennurbs_20130711.zip

– Dale


#3

Hi
Thanks, the link works, but it doesnot have example about how to set userdata on document level, it has only example how to set userdata on object level. So I try this code, in order to set userdata on the document level, but SetDocumentUserString returns false, am I missing something :

ONX_Model model;
bool success = model.SetDocumentUserString(L"mykey", L"the_data");


(Dale Fugier) #4

Hi @Elizabeta,

I think there is more to it than that, in openNURBS 5. I can try to type up a sample next week for you.

Just curious, why are you not using openNURBS 6? It can write Rhino 5 files…

– Dale


#6

Hi Dale
I cant use Rhino6 at the moment, but I will move to it very soon.


(Dale Fugier) #7

Keep in mind you don’t need to use Rhino 6 to use openNURBS 6…

– Dale