|February 16, 2017, 20:16||
Automating worksheet of named selections in Ansys Workbench
Join Date: Feb 2017
Posts: 2Rep Power: 0
I would like to create an automatic named selection with Jscript code in Ansys Workbench.
My idea was to use a worksheet as scoping method for named selection (with different criteria). However I have some problem with the code.
I don’t know how to write in my code the selection of different criteria (Action, GeometryType, Operator, Value …) and the application of “a filter” (Body, Face, Vertex … for GeometryType / Equal, NotEqual, Less Than … for Operator …) which are in the worksheet.
When I tried something like the code below, I have an error message: Error 800A01C2 - Wrong number of arguments of invalid property assignment.
name = "Selection_1"
NS = DS.Script.addNamedSelection(false,name,DS.Script.i d_NS_Body);
ListView.ItemValue = "Worksheet";
Someone have an idea ?
In my opinion, I don’t have the good parameters in “addnamedselection()” but I don’t know how to do.
Thank you for your help.
|namedselection, scripting, worksheet|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Can you help me with a problem in ansys static structural solver?||sourabh.porwal||Structural Mechanics||0||March 27, 2016 17:07|
|2way FSI with Ansys workbench||lingdeer||ANSYS||3||May 9, 2013 03:48|
|Gambit vs. Ansys workbench mesh generating||sanlee39||Main CFD Forum||2||April 8, 2013 06:09|
|[ANSYS Meshing] Missing Named Selections||kschong||ANSYS Meshing & Geometry||3||June 4, 2012 04:04|
|only 1 of many named selections not showing up in cfx pre||mihirbhagat||CFX||0||July 5, 2011 05:22|