# Get filename of model

**URL:** <https://discourse.slicer.org/t/get-filename-of-model/1909>\
**Category:** Support\
**Created:** [January 23, 2018, 3:53pm UTC](https://discourse.slicer.org/t/get-filename-of-model/1909 "2018-01-23T15:53:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/frederic/32/4907_2.png) [@Frederic](https://discourse.slicer.org/u/Frederic)\
**Post date:** [January 23, 2018, 3:53pm UTC](https://discourse.slicer.org/t/get-filename-of-model/1909/1 "2018-01-23T15:53:30Z")

</div>

Hi all,  
Is there a way to have the filename of the data.stl loaded (like for the name ‘model.GetName()’)?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 23, 2018, 4:08pm UTC](https://discourse.slicer.org/t/get-filename-of-model/1909/2 "2018-01-23T16:08:55Z")

</div>

Yes, something like:

> > > s = getNode(‘Model’)  
> > > s.GetStorageNode().GetFileName()

---

<div class="post-metadata">

**Author:** ![Frederic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/frederic/32/4907_2.png) [@Frederic](https://discourse.slicer.org/u/Frederic)\
**Post date:** [January 23, 2018, 4:29pm UTC](https://discourse.slicer.org/t/get-filename-of-model/1909/3 "2018-01-23T16:29:25Z")

</div>

Thanks for your quick reply Steve.
