@aschiaratura1 wrote:
.... use it like a prefix dosen't work for me. ....
Help us understand that. What about that doesn't work? Is it just that you haven't yet figured out how to make it work?
You can define a Dimension Style with %%C as a prefix:

and if needed, define a command that sets that Style current before calling up a DIMLINEAR command:
(defun C:YourCommandName ()
(command "_.dimstyle" "_restore" "YourDimensionStyle" "_.dimlinear")
)
Or, you can force it onto the front in a text override, which is just another way of prefixing, e.g.:
(defun C:YourCommandName ()
(command "_.dimlinear" pause pause "_text" "%%C<>")
)
which will leave you in the command to place the dimension line location.
Or does "doesn't work" mean it violates some requirement or prohibition? If so, it's hard to imagine what you mean, what the properties of a Dimension object would be that would do what you want without violating it, etc.
Kent Cooper, AIA