# ImportViewDisplayMode through Python?

**URL:** <https://discourse.mcneel.com/t/importviewdisplaymode-through-python/160992>\
**Category:** Rhino Developer\
**Tags:** windows\
**Created:** [June 5, 2023, 8:34am UTC](https://discourse.mcneel.com/t/importviewdisplaymode-through-python/160992 "2023-06-05T08:34:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/holo/32/496872_2.png) [@Holo](https://discourse.mcneel.com/u/Holo)\
**Post date:** [June 5, 2023, 8:34am UTC](https://discourse.mcneel.com/t/importviewdisplaymode-through-python/160992/1 "2023-06-05T08:34:02Z")

</div>

Is it possible to import a display mode through Python the same way as through rhinoscript’s Rhino.ImportViewDisplayMode(fileName, True) ?

I expected to find something in Rhino Common, but I couldn’t.  
(In Holomark2 I worked around this by adding data to the header of the .ini files, so I would like to to it with out doing than)

---

<div class="post-metadata">

**Author:** ![Holo](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/holo/32/496872_2.png) [@Holo](https://discourse.mcneel.com/u/Holo)\
**Post date:** [June 5, 2023, 8:37am UTC](https://discourse.mcneel.com/t/importviewdisplaymode-through-python/160992/2 "2023-06-05T08:37:09Z")

</div>

Found it.  
Rhino.Display.DisplayModeDescription.ImportFromFile(filename)
