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

Aniket
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