I have a lisp that writes a list of info to a text file.
in this list i have a specific item that has less then 12 characters
(its always
i would like take this specific list item and add spaced to the end of it to make it 12 characters long (its a format thing)
I tried adding the spaced in the beginning of the list item
but doing that ended up not displaying the list item.
sorta like it pushed it off the screen in the text file
here is what i used to add spaced to the beginning but returned undesired results.
(if (<(strlen (nth 0 dwg)) 12)
(setq dwg (subst " " (nth 0 dwg) dwg))
)
does anyone have any code snippets to share that show me how to add spaced to the end of a specific list item
thanks for any help
never mind i figured out what i was doing wrong
thanks for looking
mods can remove this post