在DIM上测试,例如。。。
字符串中有引号。
一旦所有字符串(“001”到“210”)都得到验证,我就有了一个脚本,可以将它们转换为文本。
如果我的数字没有引号,那么转换文本就不起作用。 像这样的东西怎么样?
1 I tried the original code and it's giving me the same result. Listing all the one that are in the file, as opposed to the ones that are not in the file. The ones that are not in the file are also coming up in the list. Just tested the programs and it seems to work fine for me..
Testing on Dims such as...
The strings have the quotation marks in them.
Once all strings ("001" to "210") have been verified i have a script that turns them into text.
if i have numbers without the quotes then the conversion text doesn't work. What about something like this?
(defun c:Test (/ ss) (vl-load-com) (if (setq ss (ssget "_X" '((0 . "DIMENSION") (-4 . "")))) ((lambda (i n / lst e) (while (> (setq n (1- n)) 0) (setq lst (cons n lst))) (while (setq e (ssname ss (setq i (1+ i)))) (setq lst (vl-remove (atoi (vl-list->string (vl-remove 34 (vl-string->list (cdr (assoc 1 (entget e))))) ) ) lst ) ) ) (cond (lst (print lst))) ) -1 211 ) ) (princ))
页:
1
[2]