# Loading Materials From Template file

**URL:** <https://forum.dynamobim.com/t/loading-materials-from-template-file/97668>\
**Category:** Revit\
**Tags:** python, dynamo\
**Created:** [January 31, 2024, 5:28am UTC](https://forum.dynamobim.com/t/loading-materials-from-template-file/97668 "2024-01-31T05:28:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajendra.ganesh](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rajendra.ganesh](https://forum.dynamobim.com/u/rajendra.ganesh)\
**Post date:** [January 31, 2024, 5:28am UTC](https://forum.dynamobim.com/t/loading-materials-from-template-file/97668/1 "2024-01-31T05:28:21Z")

</div>

Hello Everyone,  
I was trying to create a dynamo script to transfer materials and it’s properties from the template file. using some pyrhon coding in the script but when the script is running it’s giving some error msg as in the screeshot. can anyone help me to fix the issue.

[loadMaterials\_fromTemplateFilePath.dyn](https://forum.dynamobim.com/uploads/short-url/jtBAr5ZlpeH2OegTAQjTuh027KM.dyn) (7.8 KB)

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07eb2995fffa6d8321b33eabd12aae6f2b7a5189.png)

---

<div class="post-metadata">

**Author:** ![c.poupin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/c.poupin/32/89152_2.png) [@c.poupin](https://forum.dynamobim.com/u/c.poupin)\
**Post date:** [January 31, 2024, 11:28am UTC](https://forum.dynamobim.com/t/loading-materials-from-template-file/97668/2 "2024-01-31T11:28:00Z")

</div>

Hi @rajendra.ganesh

start by learning python, you will find information on your error here

> **[PEP 8 – Style Guide for Python Code | peps.python.org](https://peps.python.org/pep-0008/#tabs-or-spaces)**
>
> Python Enhancement Proposals (PEPs)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [February 1, 2024, 12:55am UTC](https://forum.dynamobim.com/t/loading-materials-from-template-file/97668/3 "2024-02-01T00:55:41Z")

</div>

You can I sent with tabs. Or you can indent with spaces. You cannot mix.

Enable the ‘show white space’ feature in the Python section of the preferences to identify the discrepancies.
