ansys / pyprimemesh

Pythonic Meshing Client for Ansys Prime Server
https://prime.docs.pyansys.com/
MIT License
19 stars 9 forks source link

hole pattern named selection from space claim not found by pyprime #665

Open mcMunich opened 9 months ago

mcMunich commented 9 months ago

🔍 Before submitting the issue

🐞 Description of the bug

I created a simple geometry in spaceclaim with patterned bolt holes and set them to a named selection. However I don't see tham in the pyprime output. image

pyrprime output: 4 Label(s) Names: [bladecir, boltcir, c1, shaftdia]

📝 Steps to reproduce

Load model in pyprime and print out labels.

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

232

🐍 Which Python version are you using?

3.11

📦 Installed packages

x

2BladeHubModel3m.zip

waltersma commented 9 months ago

@mcMunich this is a limitation of importing using SpaceClaim reader. If you change the cad reader route to WORKBENCH you will see these pattern selections imported as expected as labels.

For example, prime.FileIO(model).import_cad("my_geom.scdoc", prime.ImportCadParams(model, cad_reader_route=prime.CadReaderRoute.WORKBENCH))

I hope this helps! Thanks

ragulselvaraj20 commented 8 months ago

I am also getting the same problem. hai @mcMunich , have your problem solved?

waltersma commented 3 months ago

Hi @ragulselvaraj20, did you try the suggested workaround? Did this resolve your issue?