Lisp Routine Error: No Function

Hello Draftsight Community, 

I am trying to load some of our legacy lisp routines into Draftsight 2023 SP2. One of them in particular uses the function (layoutlist). This causes the following: "Error: No function". I thought this was a built in LISP function.

The Lisp routine is trying to loop through all of the layouts on a drawing.

i.e. (foreach layout (layoutlist) )

If this function does not exist/work in Draftsight, is there an alternative?

Thanks in advance for any input.