你好
我确实想知道如何使函数sssetfirst根据实体的名称选择对象!!!
这是我的开始。
- (defun c:TEst (/ ss en)
- (if (and (setq ss (car (entsel "\n Select an Object :")))[color=blue]; Suppose a CIRCLE [/color]
- (setq en (cons 0 (cdr (assoc 0 (entget ss))))) [color=blue]; return (0 . "CIRCLE")[/color]
- )
- (sssetfirst nil [color=red](ssget ....... en <== What's the right code(s) in here ?[/color]
- (princ " Nothing's Selected ")
- )
- (princ)
- )
-
该代码将选择图形中的所有圆。 |