idea-statica / iom-examples

Examples of using IDEA StatiCa IOM API
MIT License
8 stars 4 forks source link

[QUESTION]How to add beam as stiffener #28

Closed dataneodev closed 4 years ago

dataneodev commented 4 years ago

I am trying to add a beam as a stiffener but it doesn't appear in idea statica.

Please provide an example of the correct way of adding a beam as a stiffener.

private BeamData CreateBeamData(Member1D member1D)
        {
            var beam2Data = new IdeaRS.OpenModel.Connection.BeamData
            {
                Name = member1D.Name,
                AutoAddCutByWorkplane = false,
                IsBearingMember = false,
                MirrorY = false,
                Id = member1D.Id,
                OriginalModelId = member1D.Id.ToString(),
                RefLineInCenterOfGravity = false,
                AddedMember = new ReferenceElement(member1D),
                IsAdded = true
            };

            this._openModel.Connections[0].Beams.Add(beam2Data);
            return beam2Data;
        }
dataneodev commented 4 years ago

I downloaded the latest version 20.0.92 and it started to work.