# Where can be seen the template file used for creating a project?

**URL:** <https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630>\
**Category:** Rhino for Windows\
**Tags:** windows\
**Created:** [May 7, 2024, 8:00pm UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630 "2024-05-07T20:00:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/steve1/32/487081_2.png) [@Steve1](https://discourse.mcneel.com/u/Steve1)\
**Post date:** [May 7, 2024, 8:00pm UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630/1 "2024-05-07T20:00:48Z")

</div>

Hi,  
V5  
If I open a project I have been working on for a few months, where in it does it show me the template file I used to start it off as a blank new file ?

Cheers

Steve

---

<div class="post-metadata">

**Author:** ![theoutside](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/theoutside/32/473900_2.png) [@theoutside](https://discourse.mcneel.com/u/theoutside)\
**Post date:** [May 7, 2024, 8:12pm UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630/2 "2024-05-07T20:12:13Z")

</div>

If you used the default template it’d will be shown here-

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/1/0/9109be99e3797cd4981a7881ec77fbac808a0988.png)

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [May 7, 2024, 8:28pm UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630/3 "2024-05-07T20:28:45Z")

</div>

> [@Steve1](#):
>
> where in it does it show me the template file I used to start it off as a blank new file ?

Nowhere. Rhino does not “record” such things. You might be able to deduce it if you haven’t changed anything in the document properties, but in reality, a blank Rhino file from a template is just another file and despite having started with a specific template, you can freely alter all of the file properties as you are working on it and as such it may no longer match the template in any way…

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/759176_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [May 7, 2024, 8:45pm UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630/5 "2024-05-07T20:45:01Z")

</div>

> [@Steve1](#):
>
> where in it does it show me the template file I used to start it off as a blank new file ?

If you run below script, it will print the path to the template file to the command history:

```python
#! python 2
import scriptcontext
print scriptcontext.doc.TemplateFileUsed

```

Rhino stores this as runtime information only. Read [here](https://developer.rhino3d.com/api/rhinocommon/rhino.rhinodoc/templatefileused) what this means.

\_  
c.

---

<div class="post-metadata">

**Author:** ![AlW](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alw/32/53821_2.png) [@AlW](https://discourse.mcneel.com/u/AlW)\
**Post date:** [May 8, 2024, 3:42am UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630/6 "2024-05-08T03:42:58Z")

</div>

> [@clement](#):
>
> Read [here](https://developer.rhino3d.com/api/rhinocommon/rhino.rhinodoc/templatefileused) what this means.

Even this is not unequivocally clear. Am I right to interpret it to mean that the template info exists after the document is initially created and lasts until it is closed, but does not get saved with the document so that it’s not available when it is opened a second and subsequent times? What does it return in those circumstances? Seems the API documentation could be clearer.

---

<div class="post-metadata">

**Author:** ![clement](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/clement/32/759176_2.png) [@clement](https://discourse.mcneel.com/u/clement)\
**Post date:** [May 8, 2024, 9:57pm UTC](https://discourse.mcneel.com/t/where-can-be-seen-the-template-file-used-for-creating-a-project/181630/7 "2024-05-08T21:57:01Z")

</div>

> [@AlW](#):
>
> Am I right to interpret it to mean that the template info exists after the document is initially created and lasts until it is closed, but does not get saved with the document

Yes, it’s only available while the Rhino session, which opened the new file using a template, is still running.

> [@AlW](#):
>
> What does it return in those circumstances?

`None`

> [@AlW](#):
>
> Seems the API documentation could be clearer.

Agreed.  
\_  
c.
