*setcollector()

Sets the current collector based on the last *pointerset() command. This is commonly used with loadsteps. You can also use this command with sets that contain components.

Syntax

*setcollector ()

Type

HyperMesh Template Command

Example

The loadsteps entity contains the ids of loadcollectors for that step. To output the loads within each loadcollector:

*loadsteps()
  *format()
    *string("SUBCASE")
    *field(integer,id,3)
    *end()
    *counterset(counter1,0)
    *loopif([counter1 < idsmax ])
       *pointerset(pointer1,ids,counter1)
       *setcollector()
       *loads(3,1,"SPC")
         *before()
            *counterset(counter2,0)
         *format()
           *if([counter2 == 0])
             *string("SPC")
             *field(integer,pointer1.pointervalue,8)
             *end()
            *endif()
            *counterinc(counter2)
      *output()
      *counterinc(counter1)
   *endloop()
*output()