Display a Contour Plot

Finally, we can complete the rule by adding a command to create a contour plot after the solution is complete.

  1. Copy the following text:
    strCmdForDisplayContour = "<Contour ID=""1""/>"
       ' New Material
    	  i = AddinObj.Run(strCmdForNewMaterial)
    
    	  ' New Idealization
    	  i = AddinObj.Run(strCmdForNewIdealization)
    
    	  ' Mesh Model
    	  i = AddinObj.Run(strCmdForMeshModel)
    
    	  ' Generate Mesh
    	  i = AddinObj.Run(strCmdForMesh)
    
    	  ' Create Load
    	  i = AddinObj.Run(strCmdForLoad)
    
    	  ' Create Constraint
    	  i = AddinObj.Run(strCmdForConstraint)
    
    	  ' Run Analysis
    	  i = AddinObj.Run(strCmdForSolve)
    	
    	  iLogicVb.UpdateWhenDone = True
    End Sub
  2. Paste the text below the existing commands in the Edit Rule dialog.