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

REQUEST: a way to set `members_number_of_divisions_for_result_diagram` #24

Open damianbobrowski opened 1 year ago

damianbobrowski commented 1 year ago

Is your feature request related to a problem? Please describe. In RFEM it is possible to set members_number_of_divisions_for_result_diagram. Example usage:

from RFEM.initModel import Model, Calculate_all
from RFEM.Results.resultTables import ResultTables
from RFEM.Calculate.meshSettings import MeshSettings

Model(False, "simpleBeam")

# switch to detailde results
Model.clientModel.service.use_detailed_member_results(True)

# set the member division to 12
meshConfig = {'members_number_of_divisions_for_result_diagram': 12}
MeshSettings(meshConfig)

Calculate_all()
resultTable = ResultTables.MembersInternalForces() 

In RSTAB module RSTAB.meshSettings is missing. Probably reasons is that it relies on WS methods:

model.clientModel.service.get_mesh_settings()
model.clientModel.service.set_mesh_settings()

which are missing for RSTAB

raise MethodNotFound(qn)
suds.MethodNotFound: Method not found: 'RstabModel.RstabModelPort.get_mesh_settings'    

Describe the solution you'd like API way to set members_number_of_divisions_for_result_diagram

Describe alternatives you've considered _

Additional context _

OndraMichal commented 1 year ago

Hi @damianbobrowski, RSTAB doesn't have Mesh Settings... (get_mesh_settings()) function. Only generate_mesh() and get_mesh_statistics().

image

damianbobrowski commented 1 year ago

My problem: how in RSTAB I can set up Member Division for Calculation then when setting Detailed Member Results:

Model.clientModel.service.use_detailed_member_results(True)

I have more points in Result Tables

image

image


In RFEM this setting is in MeshSettings. That is why I start from RFEM point of view. I only want to set members_number_of_divisions_for_result_diagram for RSTAB.

image

Is it possible?

OndraMichal commented 1 year ago

Hi @damianbobrowski, the function Member Division for Calculation is implemented in US-13144, which is in progress right now.

MartaStolarzCreoox commented 1 year ago

Hi @OndraMichal short question, when do you estimate that this functionality will be available?

damianbobrowski commented 1 year ago

When checking newest package RSTAB=1.8.0 and RSTAB 9.03.0007 it still now work when using new class MemberDivision()

from RSTAB.Calculate.memberDivision import MemberDivision
MemberDivision(number_of_divisions_for_result_diagram=20)

It looks like WebService is not ready for package implementation

  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.get_member_divisions'

FYI @MartaStolarzCreoox