-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#21): Add class Plaxis3DOutputController.
- Loading branch information
Pablo Vasconez
committed
Nov 13, 2023
1 parent
904d32e
commit fe1f72b
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |