﻿# Zusätzliche Methoden zur Wellenberechnung

> [HTML Version](additional-methods-for-shaft.html)

Weitere Methoden für die Wellenberechnung sind:

- VARIANT\_BOOL importREXS(\[in\] BSTR p\_path);  
Import system in REXS format

- VARIANT\_BOOL exportREXS(\[in\] BSTR p\_path);  
Export system in REXS format

- void resizeLoadSpectrum(\[in\] int p\_count);  
Resize load spectrum, which needs to be active.

- VARIANT\_BOOL setLoadSpectrumElement(\[in\] int p\_id, \[in\] BSTR p\_component, \[in\] int p\_index, \[in\] double p\_value);  
Set data for load spectrum element

- VARIANT\_BOOL setPosition(\[in\] int p\_id, \[in\] double p\_position);  
Set position for force or support

- SAFEARRAY(VARIANT) getShaftIds();  
Get list of shaft IDs

- SAFEARRAY(VARIANT) getForceIds();  
Get list of force IDs

- SAFEARRAY(VARIANT) getSupportIds();  
Get list of support IDs

- SAFEARRAY(VARIANT) getSectionIds();  
Get list of section IDs

- SAFEARRAY(VARIANT) getBearingIds();  
Get list of bearing IDs

- SAFEARRAY(VARIANT) getBallscrewIds();  
Get list of ballscrew IDs

- SAFEARRAY(VARIANT) getGroupIds();  
Get list of group IDs

- SAFEARRAY(VARIANT) getElasticPartIds();  
Get list of elastic part IDs

- int getShaftIdByName(\[in\] BSTR p\_name);  
Get ID for first shaft with given name. Returns zero if not found.

- int getForceIdByName(\[in\] BSTR p\_name);  
Get ID for first force with given name. Returns zero if not found.

- int getSupportIdByName(\[in\] BSTR p\_name);  
Get ID for first support with given name. Returns zero if not found.

- int getSectionIdByName(\[in\] BSTR p\_name);  
Get ID for first section with given name. Returns zero if not found.

- int getBearingIdByName(\[in\] BSTR p\_name);  
Get ID for first bearing with given name. Returns zero if not found.

- int getBallscrewIdByName(\[in\] BSTR p\_name);  
Get ID for first ballscrew with given name. Returns zero if not found.

- int getElasticPartIdByName(\[in\] BSTR p\_name);  
Get ID for first elastic part with given name. Returns zero if not found.

- BSTR getName(\[in\] int p\_id);  
Get element name for ID

- VARIANT getIDVar(\[in\] int p\_id, \[in\] BSTR p\_name);  
Get variable for element with given ID

- VARIANT\_BOOL setIDVar(\[in\] int p\_id, \[in\] BSTR p\_name, \[in\] VARIANT p\_value);  
Set variable for element with given ID

- VARIANT\_BOOL resizeIDArray(\[in\] int p\_id, \[in\] BSTR p\_name, \[in\] int p\_count);  
Resize array variable for element with given ID

- MesysRBC\* getBearingModule(\[in\] int p\_id);  
Get bearing calculation for given ID as copy

- VARIANT\_BOOL setBearingModule(\[in\] int p\_id, \[in\] MesysRBC\* p1);  
Set bearing calculation for given ID

- MesysBALLSCREW\* getBallScrewModule(\[in\] int p\_id);  
Get ballscrew calculation for given ID as copy

- VARIANT\_BOOL setBallScrewModule(\[in\] int p\_id, \[in\] MesysBALLSCREW\* p1);  
Set ballscrew calculation for given ID

- double getForceValue(\[in\] int p\_id, \[in\] BSTR p\_name);  
Get parameters for force elements like 'x', 'b', 'Fx', 'Fy', 'Fz', 'Mx', 'My', 'Mz'

- VARIANT\_BOOL setForceValue(\[in\] int p\_id, \[in\] BSTR p\_name, \[in\] double p\_value);  
Set parameters for force elements like 'x', 'b', 'Fx', 'Fy', 'Fz', 'Mx', 'My', 'Mz'