Adding New Rows in the Mesh Worksheet

To add the first row to your worksheet, you execute these commands:

mws.AddRow()
mws.SetNamedSelection(0,ns1) 
mws.SetActiveState(0,True)

  • The command AddRow adds an empty row.

  • The command SetNamedSelection sets the value in the Named Selection column to your named selection variable ns1.

  • The command SetActiveState sets Active State at the row index. This is indicated by the check mark in the left column.

The following figure shows the mesh worksheet after the execution of these commands.

To add a row for each of the other two named selections, ns2 and ns3, use these commands:

mws.AddRow() 
mws.SetNamedSelection(1,ns2) 
mws.SetActiveState(1,True)
mws.AddRow()
mws.SetNamedSelection(2,ns3.)
mws.SetActiveState(2,True)

The following figure shows the mesh worksheet after the two new rows have been added.