So it's in paperspace and not modelspace?
Because you mentioned the the layout model in your first post.
But if you want to change hatch in the current layout tab, you can use:
(defun c:Test (/ T_Selection T_Object T_Color)
(if
(setq T_Selection (ssget "_X" (list '(0 . "HATCH") '(62 . 8) (cons 410 (getvar "CTAB")))))
(progn
(vla-StartUndoMark (vla-get-ActiveDocument (vlax-get-acad-object)))
(foreach T_Hatch (ssnamex T_Selection)
(setq T_Object (vlax-ename->vla-object (cadr T_Hatch)))
(setq T_Color (vla-get-TrueColor T_Object))
(vla-SetRGB T_Color 248 215 49)
(vla-put-TrueColor T_Object T_Color)
)
(vla-EndUndoMark (vla-get-ActiveDocument (vlax-get-acad-object)))
(princ (strcat "\n ** Modified " (itoa (sslength T_Selection)) " hatch objects."))
)
(princ "\n ** Nothing found.")
)
(princ)
)
Or if you just want to change all hatches independent of layout and space use
...
...
(setq T_Selection (ssget "_X" '((0 . "HATCH") (62 . 8))))
...
...