|
[Sponsors] |
November 22, 2015, 01:06 |
Select Geometry in script
|
#1 |
New Member
Join Date: Nov 2015
Posts: 2
Rep Power: 0 |
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"; |
|
November 23, 2015, 18:01 |
|
#2 |
New Member
Join Date: Nov 2015
Posts: 2
Rep Power: 0 |
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"; |
|
|
|
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 |