再次感谢黑匣子。我想我需要更多的人手来拿这个。下面是我用来构建字符串的代码:
- (setq Features "\\LSELECTED FEATURES\\l\\P\\pxi-3,l3,t3;"
- fcount 1)
- (if (= field1 "Y")
- (setq Features (strcat Features (itoa fcount) ".Feature Field1\\P"
- fcount (1+ fcount)
- )
- )
- (if (= field2 "Y")
- (setq Features (strcat Features (itoa fcount) ".Feature Field2\\P")
- fcount (1+ fcount)
- )
- )
- (if (= field3 "Y")
- (setq Features (strcat Features (itoa fcount) ".Feature Field3\P")
- fcount (1+ fcount)
- )
- )
- (if (= field4 "Y")
- (setq Features (strcat Features (itoa fcount) ".Feature Field4\\P")
- fcount (1+ fcount)
- )
- )
- .
- and so on, and so on.....
- .
- (command "._MTEXT" '(8.6875 7.6875) '(10.40625 3.5) Features "")
注意,我构建了一个字符串,而不是一个列表。全部完成后,字符串中将包含1到16行项目。这是可行的,但我并没有得到一个真正的编号列表。您的示例适用于选择集。。。。我不知道如何将其转换为完全无人操作。我开始倾向于使用ENTMAKE方法来实现这一点。。。! |