I’ve got a real conundrum here. To dimension the width between two parallel lines, I want to wrap the DIMALIGNED command like so. (defun C:Test ( / ptBdy1 ptBdy2)   (setvar "OSMODE" 512) ; near   (setq ptBdy1 (getpoint "Specify point on R/W boundary: (NEAR to)"))   (setvar "OSMODE" 128) ; perp   (setq ptBdy2 (getpoint ptBdy1 "Specify point on opposite boundary: (PERP to)"))   (setvar "OSMODE" 0) ; clear running osnap   (command "DIMALIGNED" ptBdy1 ptBdy2 pause) ); C:Test Unfortunately, the dimension I end up with is not associative nor can it be made so. I can go ahead and manually run the DIMALIGNED command and get an associative dimension. When I compare the two dimensions, the one I made with the wrapper function is missing the extension dictionary group, the persistent reactors group and the related hooks. Anyone got any ideas how this can be made to work? Thanks.