Application¶
initialize¶
RobotApp¶
- class pyrobotstructural.RobotApp[source]¶
Bases:
objectMain entry point for pyrobotstructural.
Wraps
RobotApplication(the root COM object) and exposes four sub-facades as properties. Callpyrobotstructural.initialize()once with the path toInterop.RobotOM.dllbefore instantiating this class.Examples
>>> import pyrobotstructural >>> dll = r"C:\Program Files\Autodesk\Robot Structural Analysis Professional 2026\Exe\Interop.RobotOM.dll" >>> pyrobotstructural.initialize(dll) >>> app = pyrobotstructural.RobotApp() >>> app.model.geometry.add_node(1, 0, 0, 0) >>> app.calculate()
- property model: ModelFacade¶
Facade for creating and editing the structural model.
Provides access to:
geometry— nodes, bars, shells, claddingsections— cross-section definitionssupports— nodal support definitions and assignmentmanagement— clear model, project management
Use
app.model.begin_edit()as a context manager when adding many objects at once to batch COM calls for significantly better performance.
- property loads: LoadsFacade¶
Facade for managing load cases, combinations, and applied loads.
Provides access to:
cases— create and manage load casescombinations— create ULS/SLS combinationsload— apply loads (self-weight, nodal, uniform, panel, etc.)
- property query: QueryFacade¶
Read-only facade for querying the model and analysis results.
Provides access to:
nodes— node coordinates and metadatabars— bar topology and section dataloadcases— list and access load casescombinations— list and access combinationsmodel— model file path and metadataresults— bar member forces, deflections, and stressesshell_results— shell FE element forces and stresses
- property view: ViewFacade¶
Facade for controlling the Robot viewport and capturing screenshots.
Provides access to:
view— display controls, results visualisation, zoom/pan/rotatescreenshots— capture and save view screenshots as PNG