CFD Online Logo CFD Online URL
Home > Forums > ANSYS Meshing & Geometry

[Workbench] Automating worksheet of named selections in Ansys Workbench

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   February 16, 2017, 20:16
Lightbulb Automating worksheet of named selections in Ansys Workbench
New Member
benjamin cosatto
Join Date: Feb 2017
Location: France
Posts: 2
Rep Power: 0
Ben_15 is on a distinguished road
Hi everyone,

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.ActivateItem("Scoping Method");
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.
Ben_15 is offline   Reply With Quote


namedselection, scripting, worksheet

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
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

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