dlubal-software / RSTAB_Python_Client

Python client (or high-level functions) for RSTAB 9 using Web Services, SOAP, and WSDL
MIT License
9 stars 4 forks source link

BUG: ModelCheck class is not compatible with RSTAB #32

Closed damianbobrowski closed 11 months ago

damianbobrowski commented 1 year ago

Describe the bug RSTAB package offers class ModelCheck() which currently cannot be use with RSTAB as it depends on 'RstabModel.RstabModelPort.model_check__get_object_groups_operation` which seems to be missing.

To Reproduce

   identical_nodes_object_groups = ModelCheck.GetIdenticalNodes(0.0005)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\RSTAB\Tools\ModelCheck.py", line 16, in GetIdenticalNodes
    object_groups = model.clientModel.service.model_check__get_object_groups_operation(operation, tolerance)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\suds\client.py", line 316, in __getattr__        
    return getattr(port, name)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\suds\client.py", line 420, in __getattr__        
    return getattr(m, name)
           ^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\suds\client.py", line 511, in __getattr__        
    return self[name]
           ~~~~^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\suds\client.py", line 524, in __getitem__        
    raise MethodNotFound(qn)
suds.MethodNotFound: Method not found: 'RstabModel.RstabModelPort.model_check__get_object_groups_operation'

Expected behavior ...

Screenshots ... Desktop (please complete the following information):

Additional context Are there plans to include missing method inside RSTAB.exe or class will be removed? I am wondering shall I implement IdenticalNodes detection on my side?

damianbobrowski commented 1 year ago

Are there plans to include missing method inside RSTAB.exe or class will be removed? I am wondering shall I implement IdenticalNodes detection on my side?

jarabroz commented 11 months ago

I think Class is going to be removed as it is unfinished development. Low level function unite_nodes_and_supports could be used to delete identical nodes instead of this class. <x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rfe="http://www.dlubal.com/rfem.xsd">

<x:Body>
    <rfe:unite_nodes_and_supports>
        <tolerance></tolerance>
    </rfe:unite_nodes_and_supports>
</x:Body>

</x:Envelope>