Skip to content

Commit

Permalink
feat(#21): Add class Plaxis3DOutputController.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Vasconez committed Nov 13, 2023
1 parent 904d32e commit fe1f72b
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 fe1f72b

Please sign in to comment.