# RhinoDoc \> OpenHeadless \> .3dm file

**URL:** <https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432>\
**Category:** Rhino Developer\
**Tags:** windows, rhinocommon, rhino7\
**Created:** [June 24, 2022, 5:30am UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432 "2022-06-24T05:30:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rama\_Shashank](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rama_shashank/32/538778_2.png) [@Rama\_Shashank](https://discourse.mcneel.com/u/Rama_Shashank)\
**Post date:** [June 24, 2022, 5:30am UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432/1 "2022-06-24T05:30:16Z")

</div>

Hello everyone,

this is my first time posting here a question in the forum=) I recently started working on RhinoCommon and RhinoCompute. I have been facing issues when converting our RhinoCommon PlugIn.  
I hope this is the right place to discuss the problem I ran into:

Till now we are using Open() and we don’t have any issue opening and generating reports from it.

Apparently, I am running into an issue when using the RhinoDoc Methods:

- [OpenHeadless()](https://developer.rhino3d.com/wip/api/RhinoCommon/html/M_Rhino_RhinoDoc_OpenHeadless.htm)

When I open **.3dm** file using OpenHeadless() method, it’s unable to load layout properties properly. I can view all the layouts in **doc.Views** but the **layouts are not loaded properly**. Views like Top, Bottom, Right, Left… are loading fine.

**doc = RhinoDoc.OpenHeadless(@“C:\Sample.3dm”);**  
Works fine when i use  
**doc = RhinoDoc.Open(@“C:\Sample.3dm”);**

Regards.

---

<div class="post-metadata">

**Author:** ![csykes](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/csykes/32/485543_2.png) [@csykes](https://discourse.mcneel.com/u/csykes)\
**Post date:** [June 30, 2022, 3:59pm UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432/2 "2022-06-30T15:59:35Z")

</div>

Hey @Rama_Shashank ,

Have you tried File3dm?

> **[File3dm.Read Method (String, File3dm.TableTypeFilter, File3dm.ObjectTypeFilter)](https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_FileIO_File3dm_Read_1.htm)**
>
> Reads a 3dm file from a specified location.

---

<div class="post-metadata">

**Author:** ![fraguada](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fraguada/32/758439_2.png) [@fraguada](https://discourse.mcneel.com/u/fraguada)\
**Post date:** [July 1, 2022, 7:42am UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432/5 "2022-07-01T07:42:40Z")

</div>

I tested this by creating a file with a layout and one detail. I use RhinoDoc.OpenHeadless() and in doc.Views I see 4 RhinoView and 1 RhinoPageView.

What I do see is that the loaded RhinoPageView has bounds of {X=0,Y=0,Width=0,Height=0} where as if I open the file directly, the bounds are {X=0,Y=0,Width=283,Height=200}

---

<div class="post-metadata">

**Author:** ![Rama\_Shashank](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rama_shashank/32/538778_2.png) [@Rama\_Shashank](https://discourse.mcneel.com/u/Rama_Shashank)\
**Post date:** [July 1, 2022, 7:56am UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432/7 "2022-07-01T07:56:36Z")

</div>

Yes, that’s the issue.  
I can’t read RhinoPageView which stores layout details. All the properties are set to default.  
But when I open Rhino I can see all the details.

Till i get the proper fix, I will try to use **File3dm.Read()** method to read the file.

---

<div class="post-metadata">

**Author:** ![Rama\_Shashank](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rama_shashank/32/538778_2.png) [@Rama\_Shashank](https://discourse.mcneel.com/u/Rama_Shashank)\
**Post date:** [July 1, 2022, 7:59am UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432/8 "2022-07-01T07:59:24Z")

</div>

Yes,  
When I use File3dm.Read() method can see the info I needed.  
Thank you.

Need to check if there is anything that’s missing.

---

<div class="post-metadata">

**Author:** ![fraguada](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/fraguada/32/758439_2.png) [@fraguada](https://discourse.mcneel.com/u/fraguada)\
**Post date:** [July 1, 2022, 8:14am UTC](https://discourse.mcneel.com/t/rhinodoc-openheadless-3dm-file/144432/9 "2022-07-01T08:14:13Z")

</div>

I have opened an issue to investigate this further. Thank you for reporting it!
