# ModellingTools.Cover does not show up in the model \[SOLVED\]

**URL:** <https://femdesign.discourse.group/t/modellingtools-cover-does-not-show-up-in-the-model-solved/177>\
**Category:** C#\
**Tags:** solved\
**Created:** [12 April 2024 11:06 UTC](https://femdesign.discourse.group/t/modellingtools-cover-does-not-show-up-in-the-model-solved/177 "2024-04-12T11:06:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmdn](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mmdn](https://femdesign.discourse.group/u/mmdn)\
**Post date:** [12 April 2024 11:06 UTC](https://femdesign.discourse.group/t/modellingtools-cover-does-not-show-up-in-the-model-solved/177/1 "2024-04-12T11:06:31Z")

</div>

Hello

I am familiarizing myself with the C# API for FEM-design, and am slowly getting the hang of it.

I tried using covers, but am having a bit of trouble. From what I understand, I need to provide Guid for all supporting structures of the cover (CoverReferenceList). I have attached a simple example where I just create a beam element and a cover, and attempt to make the beam element a supporting structure… However when the model is created, the cover has no supporting structures.

I tried adding the beam as a supporting structure manually afterwards, and then inspecting the .struxml-file. I find that the beam element, and the specified supporting structure for the cover don’t have the same Guid. So how do I get the correct one successfully?

Also: Is this the simplest way to specify the region of a cover? Create 4 points, then 4 edges, then a contour, then a region. Seems too repetitive. Is there a way to simplify it?

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

code is continued in comment…

---

<div class="post-metadata">

**Author:** ![mmdn](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mmdn](https://femdesign.discourse.group/u/mmdn)\
**Post date:** [12 April 2024 11:07 UTC](https://femdesign.discourse.group/t/modellingtools-cover-does-not-show-up-in-the-model-solved/177/2 "2024-04-12T11:07:22Z")

</div>

![Pic2](https://europe1.discourse-cdn.com/flex017/uploads/femdesign_api/original/1X/ab97f86995162a25dda2fcd130654c58c74e191b.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:** [12 April 2024 15:47 UTC](https://femdesign.discourse.group/t/modellingtools-cover-does-not-show-up-in-the-model-solved/177/3 "2024-04-12T15:47:27Z")

</div>

Hi @mmdn

try to do the following in line 59:

```auto
var beamGuids = new List<Guid> { beam.BarPart.Guid }

```

---

<div class="post-metadata">

**Author:** ![mmdn](https://avatars.discourse-cdn.com/v4/letter/m/d26b3c/32.png) [@mmdn](https://femdesign.discourse.group/u/mmdn)\
**Post date:** [15 April 2024 11:43 UTC](https://femdesign.discourse.group/t/modellingtools-cover-does-not-show-up-in-the-model-solved/177/4 "2024-04-15T11:43:35Z")

</div>

This works

Thank you very much
