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?
[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?