-
-
November 15, 2023 at 4:00 am
Zijun Zheng
SubscriberI am learning ironpython scripting. Now I just record and check the wbjn file. I also downloaded the ACT_API_reference_Guide (2023), but I don't quite understand how the guide is organized. For example, I cannot find any comments about the method 'GetSystem()' in the book.Â
Is there a better way to learn what method is available for a certain datatype?Â
-
November 15, 2023 at 7:52 am
Erik Kostson
Ansys EmployeeHi
GetSystem() we need to pass the name of the system ID which we find under the system and Properties and General an System ID.Â
For an example see here:
https://discuss.ansys.com/discussion/554/can-we-duplicate-a-system-from-within-mechanical
All the best
Erik
-
November 16, 2023 at 8:14 am
Zijun Zheng
SubscriberThanks. But my problem is that I do not know how to get the help information.Â
-
November 16, 2023 at 9:45 am
Erik Kostson
Ansys EmployeeHi You are more than welcome.
I agree with you that Workbench scripting documentation is very limited.
Â
Here is the help doc link.
We see some examples of GetSystem(), but no specific explanations referencing just this command.
Â
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v232/en/wb2_js/wb2_js.html
If you are not able to open the links, refer to this forum discussion:Â How to access the ANSYS Online Help
Guidelines for Posting on Ansys Learning Forum
Hope that helps
Another good way to see how they work is to use the workbench script recorder , that is what I do.
-
-
-
- The topic ‘Is there a better way to look up the ironpython script methods?’ is closed to new replies.
-
3377
-
1052
-
1050
-
886
-
842
© 2025 Copyright ANSYS, Inc. All rights reserved.