title: In ansys, get array of all real property numbers being used
body: <p>Using ANSYS APDL, I'm looking for a quick and computationally inexpensive way to get all the current real numbers used in the model. Something like </p>
  
  <pre><code>*vget,real_numbers...
  </code></pre>
  
  <p>The best I can come up with is </p>
  
  <pre><code>! Get a list of all element types
  *get,elemCount,elem,,count      
  elemReals= $ *vget,elemReals,elem,,attr,real !Get list of elements real numbers
  
  *get,maxReal,rcon,,num,max
  realMask= $ *dim,realMask,array,maxReal
  *vfill,realMask,data,0.0
  
  !Create Mask Of Real Numbers and number of real of real numbers
  realCount = 0
  *do,i,1,elemCount,
     *if,realMask(elemReals(i)),eq,0,then
      realMask(elemReals(i)) = 1
      realCount = realCount + 1
   *endif
  *enddo
  
  !Fill out real number array
  realNumbers = $ *dim,realNumbers,array,realCount
  realIndex = 1
  *do,i,1,maxReal,
   *if,realMask(i),eq,1,then
      realNumbers(realIndex) = i
      realIndex = realIndex + 1
   *endif
  *enddo
  </code></pre>
  
  <p>It works, but the if your real numbers are spaced very far apart it ends up looping through a bunch of zeros in the real mask...</p>
  
  <p>-Ben</p>