Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access ParameterSets inside an HybridBody #227

Open
chrisoraruf opened this issue Jul 18, 2024 · 3 comments
Open

Access ParameterSets inside an HybridBody #227

chrisoraruf opened this issue Jul 18, 2024 · 3 comments

Comments

@chrisoraruf
Copy link

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

  • Parameters
    • ParameterSet
    • ParameterSet
  • Relations
  • HybridBody
    • HybridBody
    • ParameterSet
    • HybridBody

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
Copy link
Owner

evereux commented Jul 20, 2024

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
Copy link

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

@evereux
Copy link
Owner

evereux commented Sep 16, 2024

@siddhu2310

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants