CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ANSYS Meshing & Geometry

[DesignModeler] Script function to pick single Solid Body

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 25, 2015, 19:18
Default Script function to pick single Solid Body
  #1
New Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 17
Rep Power: 7
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

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

Old   July 26, 2015, 18:44
Default
  #2
Senior Member
 
Join Date: Apr 2014
Location: Australia
Posts: 322
Rep Power: 4
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

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

Cheers
KAPI
Kapi is offline   Reply With Quote

Reply

Tags
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
moving a cold solid body into stationary hot air for heat transfer shyamgarg Main CFD Forum 0 June 8, 2014 13:37
How to define to right point for locationInMesh Mirage12 OpenFOAM Native Meshers: snappyHexMesh and Others 4 April 10, 2014 10:12
[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 16:40.