🤖 New in SPACE GASS 14.51 — the MCP server lets your AI agent build, analyse and design your models. Get started →
SpaceGass API
Recipes

Run a steel member design check

A design check verifies the sections already in the model against a design code. It does not change the model. To have SPACE GASS pick new sections, see Design steel members.

Before you start

  • The model has static analysis results for the load cases you want to check. A design run does not analyse the model for you.
  • Your seat is licensed for the design code (step 1 shows how to confirm).
  • The snippets continue from the Simple Beam tutorial after its analysis step: client is the connected client, member is the beam and ulsCase is the ULS combination.

1. Confirm the design code is licensed

GET /job/design/steel-member/codes lists every design code with whether this seat can run it. The code value is what goes in the route for the run and settings endpoints.

var designCode = DesignCode.As4100; var codes = await client.Job.Design.SteelMember.Codes.GetAsync(); var as4100 = codes!.First(c => c.Code == designCode); if (as4100.IsLicensed != true) throw new Exception("This seat is not licensed for AS 4100.");

2. Create a design group

A design group is one row of Design - Steel Members in SPACE GASS. It holds the design inputs for one or more members that are designed as a unit. members is a comma-separated list of member Ids.

A new group takes its compression effective lengths from a buckling analysis. This model has not run one, so give the lengths directly. Without this the run fails.

var group = await client.Job.Design.SteelMembers.PostAsync( new SteelMemberCreate { Members = $"{member.Id}", MemberType = SteelMemberType.Beam, LoadHeightPosition = LoadHeightPosition.Top, // Compression effective lengths, as actual lengths LengthUnitBasis = LengthUnitBasis.Actual, CalculateLcMajorFromBuckling = false, LcMajor = 6.0, CalculateLcMinorFromBuckling = false, LcMinor = 6.0, // Lateral-torsional buckling length from the flange restraints CalculateLbFromFlangeRestraints = true, });

3. Choose what to check

The general settings say which design groups and load cases the run covers. Both take SG list format ("1,3-7,10"). They are saved with the job.

await client.Job.Design.SteelMember.Settings.PatchAsync( new SteelMemberDesignGeneralSettingsUpdate { Groups = $"{group!.Id}", LoadCases = $"{ulsCase.Id}", Stations = 10, // points checked along each member });

4. Run the check

Design runs work like analysis runs: start one, then poll GET /job/design/runs/{runId} until status is Completed, Failed or Cancelled.

Each design code has its own settings. Pass them in codeSettings to apply them to this run; they are also saved with the job.

var run = await client.Job.Design.SteelMember[designCode.ToString()].RunCheck.PostAsync( new SteelMemberDesignRunCheckRequest { CodeSettings = new SteelMemberDesignSettingsAs4100Update { SlendernessRatioCheck = true, }, }); DesignRun result; do { await Task.Delay(500); result = (await client.Job.Design.Runs[run!.RunId!.Value].GetAsync())!; } while (result.Status is not (RunStatus.Completed or RunStatus.Failed or RunStatus.Cancelled)); if (result.Status != RunStatus.Completed) throw new Exception($"Design run did not complete: {result.ErrorMessage}"); Console.WriteLine($"Checked {result.CheckedCount}: {result.PassedCount} passed, {result.FailedCount} failed"); // Checked 1: 1 passed, 0 failed

5. Read the results

GET /job/query/design/steel-member/check-summary returns one row per design group. A group passes when its loadFactor is at least loadFactorLimit (1.0 unless you changed it).

var summary = await client.Job.Query.Design.SteelMember.CheckSummary.GetAsync( config => config.QueryParameters.SteelMembers = $"{group.Id}"); foreach (var row in summary!.Results!) { Console.WriteLine($"Group {row.SteelMember}: {row.Section}"); Console.WriteLine($" Load factor {row.LoadFactor:F3}, {row.Status}"); Console.WriteLine($" Critical case {row.CriticalCase}, governed by {row.Failure}"); } // Group 1: 360 UB 44.7 // Load factor 2.623, PassedWithWarnings // Critical case 10, governed by Member
statusMeaning
PassedThe group meets the code for every case checked
PassedWithWarningsIt passes, with warnings to review in the design report
FailedfailureType says why: LoadFactor, Slenderness, Seismic or DesignError

Run this example locally

A complete version that also builds and analyses the beam is in the repo as Example.SteelDesignCheck (C#) and steel_design_check (Python). Clone and run:

git clone https://github.com/SpaceGass/space-gass-api.git cd space-gass-api/sdks/csharp/examples/Example.SteelDesignCheck dotnet run

See also

Last modified on