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

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?

code is continued in comment…

Hi @mmdn

try to do the following in line 59:

var beamGuids = new List<Guid> { beam.BarPart.Guid }
1 Like

This works

Thank you very much

1 Like