# Material factor for steel in API \[SOLVED\]

**URL:** <https://femdesign.discourse.group/t/material-factor-for-steel-in-api-solved/386>\
**Category:** Help\
**Tags:** solved\
**Created:** [23 October 2024 11:58 UTC](https://femdesign.discourse.group/t/material-factor-for-steel-in-api-solved/386 "2024-10-23T11:58:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjornar](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Bjornar](https://femdesign.discourse.group/u/Bjornar)\
**Post date:** [23 October 2024 11:58 UTC](https://femdesign.discourse.group/t/material-factor-for-steel-in-api-solved/386/1 "2024-10-23T11:58:28Z")

</div>

Hello

I would like to change material factors for steel, but there is no option to do so i the API (that i have found).

Is there an easy way to do so ?

The default values from the Eurocode is not the same for building and bridges.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/femdesign_api/original/1X/75a5e4cf625c052c0e19d8b962a7b4fef2ecb50b.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:** [23 October 2024 13:51 UTC](https://femdesign.discourse.group/t/material-factor-for-steel-in-api-solved/386/4 "2024-10-23T13:51:00Z")

</div>

Hi @Bjornar 👋

You have to options 🙂

## Option 1

Use a simple python component to get access to properties which are not accessible through Grasshopper toolbox. It is really simple

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

[modifyMaterial.gh](https://femdesign.discourse.group/uploads/short-url/mt7JsR7DSYesEMCMYea0rSYJyQO.gh) (56.3 KB)

## Option 2

You can manually modify the value within a .struxml and read the new material as shown in the blog post.  
It might be that you need to change the `Guid` of the material otherwise FEM-Design will not accept the new properties 🙂

> **[FEM-Design section/material with the API | FEM-Design API](https://femdesign-api-docs.onstrusoft.com/blog/20221025/custom-sections#read-sections-and-materials)**
>
> The following article will show you how to use your personal library of sections and materials with the API.

Let me know if you need additional help

---

<div class="post-metadata">

**Author:** ![Bjornar](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@Bjornar](https://femdesign.discourse.group/u/Bjornar)\
**Post date:** [23 October 2024 16:16 UTC](https://femdesign.discourse.group/t/material-factor-for-steel-in-api-solved/386/5 "2024-10-23T16:16:32Z")

</div>

Thank you for the quick response Marco!
