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

[ICEM] Script command for "select all"?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2012, 13:56
Default Script command for "select all"?
  #1
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
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

Last edited by macfly; August 31, 2012 at 17:17.
macfly is offline   Reply With Quote

Old   September 2, 2012, 11:37
Default
  #2
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
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
stuart23 is offline   Reply With Quote

Old   September 2, 2012, 20:29
Default
  #3
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
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
macfly is offline   Reply With Quote

Old   September 2, 2012, 20:56
Default
  #4
Senior Member
 
Stuart Buckingham
Join Date: May 2010
Location: United Kingdom
Posts: 267
Rep Power: 25
stuart23 will become famous soon enoughstuart23 will become famous soon enough
François, you are correct. I had forgotten to add "rename" to the end
stuart23 is offline   Reply With Quote

Old   August 1, 2017, 07:41
Default Select all
  #5
New Member
 
Sunil
Join Date: Aug 2016
Posts: 7
Rep Power: 9
sunilkonatham is on a distinguished road
Hello all,
In the similar way explained, can you please tell me how can I "select all" to scale them by 5 times for example?
sunilkonatham is offline   Reply With Quote

Old   August 1, 2017, 08:06
Default
  #6
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
Hi Sunil,

a function to select all entites of a defined type is:
Code:
ic_geo_get_objects entitytype
replace "entitytype" by curve, point, or surface to get a list of all entites of that type.

with regards,
Sebastian
bluebase is offline   Reply With Quote

Reply


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
[ICEM] Script: problems with face names Maweil ANSYS Meshing & Geometry 3 April 16, 2019 09:10
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36
how I can write the file script to submite via HPC cluster at my UNI happy CFX 2 October 17, 2011 02:18
CFX mesh script error Malik77 CFX 0 June 24, 2011 07:42
Perl script for intialisation pratik mehta CFX 2 September 10, 2008 03:09


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