Is it possible to create user-defined functions

using named model objects as local variables?
!