evereux / pycatia

python module for CATIA V5 automation
MIT License
196 stars 53 forks source link

Access ParameterSets inside an HybridBody #227

Open chrisoraruf opened 3 months ago

chrisoraruf commented 3 months ago

Hi guys,

the documentation looks really clear about the ParameterSets. Nevertheless, it looks like from the Part.parameters you can just go back to the RootParameterSet and then move forward inside of it. The thing is that I have this kind of structure.

Part

And I have several of this ParameterSet inside HybridBodies. From Part.parameters I can go back to Parameters and then move inside its ParameterSets, but no way I can find a solution to see the other ParameterSets.

You guys have hints?

Bests!

evereux commented 2 months ago

You could use Parameters.sub_list by passing the HybridBody object to it.

But, this will give you a list of all parameters in the HybridBody such as parameters used to define geometry in the HybridBody. Easily filtered if you know the ParameterSet name.

Discovered this myself by googling how this would be done in VB. I couldn't find any more direct approach unfortunately. If there is one it's not obvious to me.

siddhu2310 commented 1 month ago

@chrisoraruf If you are not resolved the issue, Could share some example files with details of issue.

evereux commented 1 month ago

@siddhu2310

Do you really need examples files? @chrisoraruf has provided enough information in their initial post.