Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a named selection referencing another named selection using the ACTConsole in ANSYS?

Status
Not open for further replies.

tlewis3348

Mechanical
Aug 23, 2017
31
I used the information here (link) to create a named selection using the ACTConsole. However, I need the named selection I'm creating to reference another named selection. Therefore, I have tried to use the code below:

[tt]worksheet.AddRow()
worksheet.SetEntityType(0,NamedSelectionWorksheetEntityType.Body)
worksheet.SetCriterion(0,NamedSelectionWorksheetCriterion.NamedSelection)
worksheet.SetOperator(0,NamedSelectionWorksheetOperator.Equal)
worksheet.SetStringValue(0,"Bolts")[/tt]

This just results in the value for that row (where the "Bolts" named selection was supposed to be selected) being blank. I have also tried using [tt]worksheet.SetValue(0,0)[/tt] (which also leaves the field blank) and [tt]worksheet.SetValue(0,1)[/tt] (which enters the following path in the field where the "Bolts" named selection is intended to go: D:\Documents\Projects\Analysis\FEA\Tests\Bolt\Bolt_files\dp0\global\MECH\SYS-3.mechdb ). Can anyone tell me what the correct way to reference a named selection inside another named selection using the ACTConsole is?
 
Replies continue below

Recommended for you

Ha! I figured it out! The command [tt]worksheet.SetValue(0,NmdSlct.ObjectId)[/tt] should be used, where [tt]NmdSlct[/tt] is the named selection object that you want to reference.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor