CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (http://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] Script command for "select all"? (http://www.cfd-online.com/Forums/ansys-meshing/106506-script-command-select-all.html)

macfly August 30, 2012 13:56

Script command for "select all"?
 
Dear modelers,

Is there a script command in order to select all entities of a given family? e.g., select all points, select all lines, select all surfaces, etc.

Example : I would like to select all visible curves in order to create a new part containing all the curves.

I sweep tons of 2D sufaces in order to create my 3D geometry, therefore I lose track of the vertex names, curves names, surfaces names, etc. After my geometry is done, I want to clean my model and automatically create separate parts containing all vertex, all curves, all surfaces, etc.

Regards,
François

stuart23 September 2, 2012 11:37

Hi Françoi,

Try the following:

ic_geo_set_family curve partname all

You can change "curve" to "surface" if you want to put all the surfaces in a part. Also replace "partname" with the name of the part you want to move things to.

Good Luck

Stu

macfly September 2, 2012 20:29

Thanks Stuart, in Icem CFD 14.0 the following commands create 3 separate parts with points, curves and surfaces:

ic_geo_set_family point POINTS all rename
ic_geo_set_family curve CURVES all rename
ic_geo_set_family surface SURFACES all rename

Regards
François

stuart23 September 2, 2012 20:56

François, you are correct. I had forgotten to add "rename" to the end


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