IOM.SteelFrameDesktop
This is a desktop console application example that demonstrates how to create IDEA StatiCa Connection projects from IOM (IDEA Open Model) using the Connection API on a machine with IDEA StatiCa installed locally.
Overview
This example shows how to:
- Generate steel frame models using IOM (IDEA Open Model)
- Use the Connection API to create IDEA StatiCa Connection projects
- Work with the locally installed IDEA StatiCa desktop application
- Save generated projects to the local file system
Configuration
Before running the application, you need to configure the IDEA StatiCa installation directory:
- Open App.config
- Update the
IdeaInstallDirsetting to match your IDEA StatiCa installation path:
<setting name="IdeaInstallDir" serializeAs="String">
<value>C:\Program Files\IDEA StatiCa\StatiCa 25.1</value>
</setting>
Available Examples
When you run the application, you can choose from the following steel frame examples:
- Steel frame ECEN - A steel frame designed according to European (Eurocode) standards
- Simple frame AUS - A simple steel frame designed according to Australian standards
How It Works
The application performs the following steps:
- Generate IOM: Creates an OpenModel object representing the steel structure
- Generate Results: Creates an OpenModelResult object with analysis results (optional)
- Create Container: Combines the model and results into an OpenModelContainer
- Export to XML: Saves the container to an XML file (
example.xml) - Start API Service: Automatically starts the Connection API service using
ConnectionApiServiceRunner - Create Project: Calls the Connection API to create a
.ideaConproject from the IOM file - Save Project: Saves the generated project to your desktop
- Clean Up: Closes the project on the server
Usage
- Build and run the project
- Select the desired example (1 or 2) when prompted
- The application will generate the IOM and create a Connection project
- The resulting
.ideaConfile will be saved to your desktop with the nameconnectionFromIOM-local.ideaCon - You can open this file in IDEA StatiCa Connection application
Key Components
Dependencies
- IdeaStatiCa.ConnectionApi - NuGet package for interacting with IDEA StatiCa Connection
- IOM.SteelFrameExample - Project reference containing the IOM generator classes
Main Classes
Program- Main entry point that orchestrates the workflowSteelFrameExample- Generator for ECEN steel frame (from referenced project)SimpleFrameAUS- Generator for Australian steel frame (from referenced project)ConnectionApiServiceRunner- Service runner for the Connection API
Output
The application creates:
example.xml- The IOM XML file in the application directoryconnectionFromIOM-local.ideaCon- The IDEA StatiCa Connection project on your desktop
Related Examples
- IOM.SteelFrameExample - Contains the IOM generator logic
- IOM.SteelFrameWeb - Demonstrates creating projects using IDEA Cloud web service
- Parent README - Detailed tutorial on creating IOM for steel frames
Additional Resources
Notes
- This example requires a local installation of IDEA StatiCa
- The API service is automatically started and stopped by the application
- If you encounter any issues, verify that your IDEA StatiCa installation path is correct in App.config