Skip to content

AnalyticalMember.GetMemberForces

Public Class

Gets the member forces associated with this Analytical Member.

Namespace: Autodesk.Revit.DB.Structure

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public IList<MemberForces> GetMemberForces()

Return Value

IList. MemberForces.
Returns a collection of Member Forces associated with this Analytical Member. Empty collection will be returned if Analytical Member doesn’t have any Member Forces. To find out with which end member forces are associated use [!:Autodesk::Revit::DB::Structure::MemberForces::Position] property to obtain a position of Member Forces on element.

Remarks

Member forces are strictly related with releases. This means that we can obtain member forces values only for directions that have releases set to false. Force or moment component on direction that have release set to true is skipped (zeroed) during getting.

Example

C#

/// <summary>
/// Get the meber forces at the start of a beam
/// </summary>
public MemberForces GetStartMemberForces(AnalyticalMember ams)
{
MemberForces startForces = null;
if (ams != null)
{
IList<MemberForces> beamForces = ams.GetMemberForces();
foreach (MemberForces forces in beamForces)
{
if (forces.Start == true)
{
startForces = forces;
break;
}
}
}
return startForces;
}