CFD Online Logo CFD Online URL
Home > Forums > ANSYS Meshing & Geometry

[DesignModeler] Script function to pick single Solid Body

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 25, 2015, 19:18
Default Script function to pick single Solid Body
Eduardo Firvida
Join Date: Dec 2010
Posts: 36
Rep Power: 8
efirvida is on a distinguished road
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

ag.bodyPick; ag.gui.SelectAll();
efirvida is offline   Reply With Quote

Old   July 26, 2015, 18:44
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 7
Kapi is on a distinguished road
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

agb.AddSelect(agc.TypeBody, namsel1);
Go thru scripting guide first, it shud help you in all such cases!

Kapi is offline   Reply With Quote


scripting, scripts

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to define to right point for locationInMesh Mirage12 OpenFOAM Native Meshers: snappyHexMesh and Others 7 March 13, 2016 15:07
moving a cold solid body into stationary hot air for heat transfer shyamgarg Main CFD Forum 0 June 8, 2014 13:37
[DesignModeler] how to subtract a surface body from a solid body? yahya ANSYS Meshing & Geometry 4 January 7, 2013 12:00
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27

All times are GMT -4. The time now is 18:59.