Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums AIS Japan 構造 全てのボディに内容の異なるコマンドを設定したい Reply To: 全てのボディに内容の異なるコマンドを設定したい

Aniket Chavan
Forum Moderator

you can traverse tree as shown in code snippet below: 

https://ansyshelp.ansys.com/public/account/secured?returnurl=/Views/Secured/corp/v242/en/act_script/act_script_examples_get_GeoData.html 

only first line is important, you can list all the children of each part by changing the number. now next part would be adding command snippets that can be done using following:

https://ansyshelp.ansys.com/public/account/secured?returnurl=/Views/Secured/corp/v242/en/act_script/mech_apis_CommandSnippets.html

-Aniket

Forum Rules & Guidelines

[bingo_chatbox]