How osdag-admin/osdag works
Purpose and Entry Points
Osdag is a cross-platform desktop application for IS 800:2007 steel-structure design, optimization/checking, detailing, 3D CAD visualization, drawing export, and calculation reports. The main GUI entry is src/osdag/osdagMainPage.py; application orchestration is concentrated in src/osdag/main_controller.py. A command-line path also exists at src/osdag/Command_line.py.
GUI and Design Workflow
The GUI presents design modules, captures inputs/preferences, routes users to a selected design type, and displays outputs/summary views. Qt Designer-generated interfaces and controller-facing UI code form the desktop boundary:
• src/osdag/gui/ui_OsdagMainPage.py
• src/osdag/gui/UI_DESIGN_PREFERENCE.py
• src/osdag/design_type/main.py
The primary flow is: user selects a module and inputs → design object performs optimized or customized checks → calculated output feeds UI, CAD, drawings, and reports.
Structural Design Domain Layer
design_type is the central domain dispatch layer, grouping member, connection, and system designs. It contains the engineering workflows for shear/moment connections, base plates, tension/compression members, flexure, and plate girders:
• src/osdag/design_type/design_type.py
• src/osdag/design_type/connection/connection.py
• src/osdag/design_type/connection/base_plate_connection.py
• src/osdag/design_type/tension_member/tension_bolted.py
• src/osdag/design_type/compression_member/compression.py
This layer is the main boundary between UI-shaped input and engineering result/output objects.
Engineering Rules, Inputs, and Design Selection
Shared data models and calculation primitives encode materials, loads, section properties, validation, design preferences, and IS 800:2007 rules:
• src/osdag/utils/common/input.py
• src/osdag/utils/common/material.py
• src/osdag/utils/common/is800_2007.py
• src/osdag/utils/common/design_preferences.py
• src/osdag/utils/validator.py
Design modules use these common inputs/rules to evaluate candidate sections, plates, bolts, and welds. The README indicates two modes: choose an optimum candidate based on material volume, or validate a user-customized selection and return corrective guidance.
CAD and Detailing Pipeline
Design results are translated into parametric 3D assemblies. Generic primitives (sections, plates, bolts, welds, anchors) are composed by connection- and member-specific CAD builders:
• src/osdag/cad/cad3dconnection.py
• src/osdag/cad/items/ISection.py
• src/osdag/cad/items/plate.py
• src/osdag/cad/ShearConnections/FinPlate/beamWebBeamWebConnectivity.py
• src/osdag/cad/BasePlateCad/baseplateconnection.py
This is a distinct geometry boundary: engineering dimensions/results become renderable/exportable solid-model assemblies. src/osdag/drawing_2D/generate_2d.py and src/osdag/drawing_2D/Svg_Window.py provide the 2D/SVG presentation path.
Reports, Persistence, and External Integrations
Report generation consumes design outputs to produce detailed, stepwise documents, including LaTeX-backed generation:
• src/osdag/design_report/reportGenerator.py
• src/osdag/design_report/reportGenerator_latex.py
• src/osdag/texlive/Design_wrapper.py
Bundled resources include an SQL database and persisted .osi design examples/last designs:
• src/osdag/data/ResourceFiles/Database/Intg_osdag.sql
• src/osdag/data/ResourceFiles/design_example
• src/osdag/data/ResourceFiles/last_designs
Python is the application runtime; LaTeX/TeX Live is material report infrastructure. Crash reporting is a separate Qt subsystem with GitHub and email backends: src/osdag/APP_CRASH/Appcrash/api.py, src/osdag/APP_CRASH/Appcrash/backends/GITHUB.py, and src/osdag/APP_CRASH/Appcrash/backends/email.py.
Main entry points: design_type.py Design Dispatch · main_controller.py Application Controller · cad3dconnection.py 3D CAD Assembly · osdagMainPage.py Main GUI
Components 22
Application Entry
- Main GUI · Desktop application entry point.
src/osdag/osdagMainPage.py - Command Line
src/osdag/Command_line.py - Application Controller · Coordinates selected design workflows and outputs.
src/osdag/main_controller.py
Desktop UI
- Main Page UI
src/osdag/gui/ui_OsdagMainPage.py - Design Preferences UI
src/osdag/gui/UI_DESIGN_PREFERENCE.py - Design UI Router
src/osdag/design_type/main.py
Engineering Design
- Design Dispatch · Routes UI-shaped inputs to member, connection, and system designs.
src/osdag/design_type/design_type.py - Connection Designs · Shear, moment, and base-plate connection checks.
src/osdag/design_type/connection/connection.py - Base Plate Design
src/osdag/design_type/connection/base_plate_connection.py - Tension Member Design
src/osdag/design_type/tension_member/tension_bolted.py - Compression Member Design
src/osdag/design_type/compression_member/compression.py - Inputs & Materials · Loads, sections, material properties, and design inputs.
src/osdag/utils/common/input.py - IS 800 Rules
src/osdag/utils/common/is800_2007.py - Validation & Preferences · Validates inputs and selects optimized or customized design mode.
src/osdag/utils/validator.py
CAD, Drawings & Reports
- 3D CAD Assembly · Converts engineering results into parametric solid assemblies.
src/osdag/cad/cad3dconnection.py - CAD Primitives · Sections, plates, bolts, welds, and anchors.
src/osdag/cad/items/ISection.py - 2D / SVG Drawings
src/osdag/drawing_2D/generate_2d.py - Report Generator · Builds stepwise calculation reports from design results.
src/osdag/design_report/reportGenerator.py - LaTeX Report Backend
src/osdag/design_report/reportGenerator_latex.py
Data & Integrations
- Section Database
src/osdag/data/ResourceFiles/Database/Intg_osdag.sql - Saved Designs · Bundled examples and prior design files.
src/osdag/data/ResourceFiles/design_example - Crash Reporting · Reports failures through GitHub and email backends.
src/osdag/APP_CRASH/Appcrash/api.py
Connections 22
- Main GUI → Main Page UI: loads
- Main GUI → Application Controller: starts
- Command Line → Application Controller: invokes
- Main Page UI → Design UI Router: selects module
- Design Preferences UI → Application Controller: supplies preferences
- Design UI Router → Application Controller: submits inputs
- Application Controller → Design Dispatch: runs design
- Design Dispatch → Connection Designs: routes connections
- Connection Designs → Base Plate Design: includes
- Design Dispatch → Tension Member Design: routes tension
- Design Dispatch → Compression Member Design: routes compression
- Design Dispatch → Inputs & Materials: uses
- Design Dispatch → IS 800 Rules: checks against
- Design Dispatch → Validation & Preferences: validates mode
- Inputs & Materials → Section Database: looks up sections
- Design Dispatch → 3D CAD Assembly: design results
- 3D CAD Assembly → CAD Primitives: composes
- 3D CAD Assembly → 2D / SVG Drawings: geometry for export
- Design Dispatch → Report Generator: calculation results
- Report Generator → LaTeX Report Backend: renders with
- Application Controller → Saved Designs: loads and saves
- Application Controller → Crash Reporting: reports failures