!   TITLE:  get_min_entity.mac (MANAGEMENT)
!
!
!   This sub-macro is used to store the minimum values of the solid and FE
!   model entities. It is used ONLY for retrieving the minimum values of a
!   SELECTED set of entities. It stores the minimum numerical value for
!   all solid model entity types (i.e., keypoints, lines, areas and volumes)
!   for a selected set of entities so that that only those selected
!   entities may be operated on.
!
!
*get,prkey_,active,0,prkey
/nopr

*get,k_min,kp,,num,min          ! get minimum keypoint number
!
*get,l_min,line,,num,min        ! get minimum line number
!
*get,a_min,area,,num,min        ! get minimum area number
!
*get,v_min,volu,,num,min        ! get minimum volume number
!
*get,e_min,elem,,num,min        ! get minimum element number
!
*get,n_min,node,,num,min        ! get minimum node number


*if,prkey_,eq,1,then
    /go
*endif