# Material safety factor from file path \[SOLVED\]

**URL:** <https://femdesign.discourse.group/t/material-safety-factor-from-file-path-solved/280>\
**Category:** Grasshopper\
**Tags:** solved\
**Created:** [5 September 2024 10:43 UTC](https://femdesign.discourse.group/t/material-safety-factor-from-file-path-solved/280 "2024-09-05T10:43:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hso](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@hso](https://femdesign.discourse.group/u/hso)\
**Post date:** [5 September 2024 10:43 UTC](https://femdesign.discourse.group/t/material-safety-factor-from-file-path-solved/280/1 "2024-09-05T10:43:47Z")

</div>

Hello,

I am trying to assign steel elements with the correct partial factor according to the Norwegian code. I have created a material.struxml file and specified the material partial factors. Then, I import the material file into Grasshopper and create the geometry in FEM-Design. However, the partial factor does not match the value in my material file. Am I doing something wrong, or is there a solution for this?

Created material library

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/femdesign_api/original/1X/6c0b5945cf2b19d3f9d3220c9d15da23f50cadb8.png)

Import material into Grasshopper

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/femdesign_api/original/1X/60fafff7d8fb2306c38941a65975b109090b9f73.png)

Result in FEM-Design

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/femdesign_api/original/1X/61131212671175a973c466ac1aaee66a44fda9b4.png)

---

<div class="post-metadata">

**Author:** ![MarcoPelle](https://dub1.discourse-cdn.com/flex017/user_avatar/femdesign.discourse.group/marcopelle/32/6_2.png) [@MarcoPelle](https://femdesign.discourse.group/u/MarcoPelle)\
**Post date:** [5 September 2024 10:58 UTC](https://femdesign.discourse.group/t/material-safety-factor-from-file-path-solved/280/2 "2024-09-05T10:58:20Z")

</div>

Hi @hso

Can you please share your material.struxml and your grasshopper script to repliclate the error?

---

<div class="post-metadata">

**Author:** ![hso](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@hso](https://femdesign.discourse.group/u/hso)\
**Post date:** [5 September 2024 11:15 UTC](https://femdesign.discourse.group/t/material-safety-factor-from-file-path-solved/280/3 "2024-09-05T11:15:03Z")

</div>

I created an example script to send you, and while doing that, I figured out that the country code given in Model.Construct overruns the partial factors given in the material. By not assigning a country code in Model.Contruct, I got the same partial factors as in material.struxml.

Thanks!

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/femdesign_api/original/1X/a8896f4df86ca44462e3946adbfc142ba6c5151e.png)
