# ON\_BinaryFile

**URL:** <https://discourse.mcneel.com/t/on-binaryfile/122442>\
**Category:** Rhino Developer\
**Tags:** windows\
**Created:** [April 15, 2021, 1:44pm UTC](https://discourse.mcneel.com/t/on-binaryfile/122442 "2021-04-15T13:44:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nairon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nairon/32/386470_2.png) [@nairon](https://discourse.mcneel.com/u/nairon)\
**Post date:** [April 15, 2021, 1:44pm UTC](https://discourse.mcneel.com/t/on-binaryfile/122442/1 "2021-04-15T13:44:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [April 15, 2021, 2:30pm UTC](https://discourse.mcneel.com/t/on-binaryfile/122442/2 "2021-04-15T14:30:30Z")

</div>

Hi @nairon,

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

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

```

– Dale

---

<div class="post-metadata">

**Author:** ![nairon](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/nairon/32/386470_2.png) [@nairon](https://discourse.mcneel.com/u/nairon)\
**Post date:** [April 15, 2021, 2:32pm UTC](https://discourse.mcneel.com/t/on-binaryfile/122442/3 "2021-04-15T14:32:59Z")

</div>

Yes, now it worked Thank you very much Dale
