dlubal-software / RFEM_Python_Client

Python client (or high-level functions) for RFEM 6 using Web Services, SOAP and WSDL
https://dlubal-software.github.io/.github/
MIT License
71 stars 27 forks source link

BUG: Function CentreOfGravity #373

Closed jlemeriel closed 5 months ago

jlemeriel commented 5 months ago

I would like to retrieve the coordinates of the center of gravity of certain elements, selected or not in RFEM. My code is

from RFEM.Tools.centreOfGravityAndObjectInfo import ObjectInformation

Model(False,"Bloc 6 RFEM6.rf6")

p=ObjectInformation.CentreOfGravity( ObjectTypes.E_OBJECT_TYPE_MEMBER, 0, 1, 'X') The bug is : File ~.spyder-py3\RFEM\Tools\centreOfGravityAndObjectInfo.py:24 in CentreOfGravity result = ObjectInformation.__BuildResultsArray(object_type, no, parent_no)

File ~.spyder-py3\RFEM\Tools\centreOfGravityAndObjectInfo.py:84 in __BuildResultsArray elements = model.clientModel.factory.create('ns0:array_of_get_center_of_gravity_and_objects_info_elements_type')

File ~\AppData\Roaming\Python\Python311\site-packages\suds\client.py:254 in create raise TypeNotFound(name)

TypeNotFound: Type not found: 'ns0:array_of_get_center_of_gravity_and_objects_info_elements_type'

heetrojivadiya commented 5 months ago

Hello @jlemeriel ,

Thank you for reporting the bug. I have created PR #383 to fix this bug. After successful merging of it, this bug should be fixed. If you still face the issue then feel free to contact us.