ON_BinaryFile

289 / 5000
Resultados de tradução
Hello everybody.
I’m trying to convert an old plugin written in C ++ for Rhino 5 it turns out that it uses ON_BinaryFile (ON :: read3dm …
When I try to compile for Rhino 6 an error occurs:
→ read3dm is not part of On :: archive_mode

Does anyone know how to fix this ???

Thanks

Hi @nairon,

ON::archive is an enum class not just a plain enum. Thus, you will need to do something like this:

ON_BinaryFile reader(ON::archive_mode::read3dm, pszFileName);

– Dale

Yes, now it worked Thank you very much Dale