CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [DesignModeler] Script function to pick single Solid Body (https://www.cfd-online.com/Forums/ansys-meshing/157309-script-function-pick-single-solid-body.html)

efirvida July 25, 2015 19:18

Script function to pick single Solid Body
 
Hi I need to select a solid body Design Modeler with script, in a design with multiples solids bodies. with the following command I select all the solid bodies but this is not what I need. I need to select one of all

Code:

ag.bodyPick; ag.gui.SelectAll();

Kapi July 26, 2015 18:44

Hi efirvida,

You have to first named select the body ( namsel1) you want to pick then use below code where you want to select that body

Code:

ag.bodyPick;
agb.AddSelect(agc.TypeBody, namsel1);

Go thru scripting guide first, it shud help you in all such cases!

Cheers
KAPI


All times are GMT -4. The time now is 12:58.