Skip to content

Commit

Permalink
Merge pull request #24 from cemsbv/21-add-plaxis3doutputcontroller
Browse files Browse the repository at this point in the history
Add class Plaxis3DOutputController.
  • Loading branch information
PabloVasconez authored Nov 15, 2023
2 parents 904d32e + fe1f72b commit 54f8148
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/plxcontroller/plaxis_3d_output_controller.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from __future__ import annotations

from plxscripting.plxproxy import PlxProxyGlobalObject
from plxscripting.server import Server


class Plaxis3DOutputController:
def __init__(self, server: Server):
"""Creates a new Plaxis3DOutputController instance based on a server connection with the Plaxis program.
Args:
server (Server): the server connection with the Plaxis program.
"""
self.server = server

@property
def s_o(self) -> Server:
"""Returns the server object. This is a typical alias for the server object."""
return self.server

@property
def g_o(self) -> PlxProxyGlobalObject:
"""Returns the global project object. This is a typical alias for the global project object."""
return self.server.plx_global

0 comments on commit 54f8148

Please sign in to comment.