Code:
(setvar 'modemacro
(strcat
"$(If,$(Eq,$(Getvar,dbmod),0),,* )" ;The asterick indiates the drawing is not saved.
"$(getvar,cprofile)" ;Current Profile
", $(getvar,wscurrent) " ;Current Workspace
", $(getvar,textsize) "
"$(if,$(and,1,$(getvar,pickstyle)),<Group on> ,<Group off> )"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,1,$(getvar,osmode)),End ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,2,$(getvar,osmode)),Mid ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,32,$(getvar,osmode)),Int ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,2048,$(getvar,osmode)),App ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,4096,$(getvar,osmode)),Ext ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,4,$(getvar,osmode)),Cen ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,16,$(getvar,osmode)),Qua ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,256,$(getvar,osmode)),Tan ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,128,$(getvar,osmode)),Per ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,8192,$(getvar,osmode)),Par ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,8,$(getvar,osmode)),Nod ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,64,$(getvar,osmode)),Ins ))"
"$(if,$(and,16384,$(getvar,osmode)),,$(if,$(and,512,$(getvar,osmode)),Nea ))"
"$(If,$(Eq,$(Getvar,PStyleMode),0),STB ,CTB )"
"$(if,$(>, $(getvar,dynmode), 0),$(if,$(=,$(getvar,dynpicoords),0),@, #), #)" ;Dynamic coordinate entry.
" $(getvar, cmdnames)"
)
)
If you post a few lines of your acaddoc.lsp that aren't working the way you want we should be able to help you out.