メッセージ1/20
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- パーマリンクを表示
- 印刷
- 報告
Hi, I want to select a Layout using initget.
I wrote the following function to do that for me. Its working when there are no spaces within the Layoutname but if there are spaces in it, for example "A0 - view A", then it does not work.
Any suggestions?
(defun setlayout (/ list2String) ; checks if its in Model area, if so, asks the user to change
(if (= (getvar "ctab") "Model")
(progn
(defun list2String (lst space / str)
(setq str (car lst))
(foreach itm (cdr lst)
(setq str (strcat str space itm))
)
str
)
(initget 1 (list2String (layoutlist) " "))
(setvar "ctab" (getkword (strcat "Select Layout [" (list2String (layoutlist) "/") "]: ")))
)
)
);defun
解決済! 解決策の投稿を見る。