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

[ANSYS Meshing] Select Geometry in script

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2015, 01:06
Default Select Geometry in script
  #1
New Member
 
Join Date: Nov 2015
Posts: 2
Rep Power: 0
Rekarth is on a distinguished road
Hi,

Scripting is not well documented, I need help with something.

I wish to select select the geometry body to apply mesh method and mesh sizing on it. How can I do it? Here is my code so far.

Thanks

Code:
var meshGroup = DS.Tree.FirstActiveBranch.MeshControlGroup;

DS.Script.changeActiveObject(meshGroup.ID);
DS.Script.doInsertMeshElementShape();
ListView.ActivateItem("Scoping Method");
ListView.ItemValue = "Geometry Selection";
ListView.ActivateItem("Method");
ListView.ItemValue = "MultiZone";

DS.Script.changeActiveObject(meshGroup.ID);
DS.Script.doInsertMeshSize();
ListView.ActivateItem("Scoping Method");
ListView.ItemValue = "Geometry Selection";
ListView.ActivateItem("Element Size");
ListView.ItemValue = "1";
Rekarth is offline   Reply With Quote

Old   November 23, 2015, 18:01
Default
  #2
New Member
 
Join Date: Nov 2015
Posts: 2
Rep Power: 0
Rekarth is on a distinguished road
Found what I was looking for. Here is the code if someone eventually need it.

Code:
ListView.ActivateItem("Scoping Method");
ListView.ItemValue = "Geometry Selection";
SM.Clear();
SM.SelectAll();
ListView.ActivateItem("Geometry");
ListView.ItemValue = "Apply";
Rekarth 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
[Workbench] Run ICEM Script in Workbench Script MIZOR ANSYS Meshing & Geometry 9 April 4, 2018 08:45
[ICEM] Work with imported STL geometry KateEisenhower ANSYS Meshing & Geometry 2 July 9, 2015 11:46
Problem Importing Geometry ProE to CFX fatb0y CFX 3 January 14, 2012 20:42
2D geometry to 3D geometry Sgonzalezg ANSYS Meshing & Geometry 11 April 8, 2011 12:02
creating geometry using "Script files" in ICEMCFD jaber Main CFD Forum 1 November 11, 2007 10:28


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