This is a slight change to what Ronjonp provided.
(defun c:foo (/ o s spc)
(if (setq s (ssget ":L" '((0 . "dimension"))))
(progn
(setq spc (getreal "\nEnter spacing eg 100 "))
(foreach e (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
(setq n (/ (vla-get-measurement (setq o (vlax-ename->vla-object e))) spc))
(vla-put-textoverride o (strcat (rtos n 2 0) (strcat "x" (rtos spc 2 0))))
)
)
)
(princ)
)
If you have fixed values could do like this can have more values its a library routine. 3 lines of code to make.