/out,shomodel,out
!  plots the model
!   arg1 = 0     laminate only
!   arg2 = 36    coils and stator
!   arg3 = anything else, all solid96 elements
*if,arg1,le,0,then  !  show laminates only
 esel,all
 esel,u,mat,,1,6,5
 nsle
 /pnum,mat,1
 /auto
 /view,1,1,1,1
 /num,1
*elseif,arg1,eq,36,then
 esel,,ename,,36
 nsle
 /graph,full
 /eshap,1
 /type,,3
 /pnum,real,1
 /num,1
 esel,a,mat,,5
 nsle
*else
 esel,,ename,,96
 nsle
 /graph,full
 /eshap,1
 /type,,3
 /pnum,mat,1
 /num,1
 nsle
*endif

eplo
/out