CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > 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 Search this Thread Display Modes
Old   July 25, 2015, 20:18
Default Script function to pick single Solid Body
  #1
Member
 
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 15
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, 19:44
Default
  #2
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 13
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
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 3 December 26, 2019 23:41
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
[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 21:50
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


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