Personal tools
You are here: Home Forum Use get all Parameters in SHAPER module

get all Parameters in SHAPER module

Up to Use

get all Parameters in SHAPER module

Posted by Vadims Geza at August 30. 2019

Hi!

New SHAPER module is really a good tool. Now I am trying to work with it using TUI. And I have to admit that the new structure is somehow hard to understand.

What I am stuck with is getting all parameters defined in the model. If all parts are known, I was able to get parameters with

Part_1.document().allFeatures()

and then loop over the features and check them with getKind().

However, if I do not have access to part variables - how to get parameters?

Parameters created in GEOM module can be extracted with salome.myStudy.GetVariableNames(). Is there any equivalent function for that in SHAPER module?

 

Thank you!

Re: get all Parameters in SHAPER module

Posted by Christophe Bourcier at September 06. 2019

Hi,

 

you can iterate on the partSet to get the parameters of each part from its document.

 

See the script in attachment.

 

Christophe

 

Attachments
Powered by Ploneboard
Document Actions