|
[Sponsors] | |||||
[DesignModeler] Script function to pick single Solid Body |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Eduardo Firvida
Join Date: Dec 2010
Posts: 53
Rep Power: 17 ![]() |
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(); |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 15 ![]() |
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); Cheers KAPI |
|
|
|
|
|
![]() |
| Tags |
| scripting, scripts |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |