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

[EMBEDDED] Model.DeleteParts(geo_part_list) giving error #1047

Open
dipinknair opened this issue Jan 15, 2025 · 0 comments
Open

[EMBEDDED] Model.DeleteParts(geo_part_list) giving error #1047

dipinknair opened this issue Jan 15, 2025 · 0 comments

Comments

@dipinknair
Copy link
Collaborator

This behavior is seen only in embedding but no issues with batch mode or with Mechanical scripting window.
To replicate this after importing a geomtry

part_id_list = [3,7]
geo_part_list = [ExtAPI.DataModel.GeoData.GeoPartById(id) for id in part_id_list]
Model.DeleteParts(geo_part_list)
CRITICAL -  -  logging - handle_exception - Uncaught exception
Traceback (most recent call last):
  File "C:\Users\dkunhamb\Downloads\K18_Board (1)\K18_Board\pymech.py", line 21, in <module>
    Model.DeleteParts(geo_part_list)
System.ArgumentException: Argument must be an `IGeoPart` or collection!
Parameter name: parts
   at Ansys.ACT.Automation.Mechanical.Model.DeleteParts(Object parts)
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

1 participant