在这里简单地说:
- (defun c:test (/ ptim t1 t2 kol ugol)
- (setq ptim (car (entsel))
- t1 (getpoint "\nInitial a direction point: ")
- t2 (getpoint t1 "\nFinal point of a direction: ")
- kol (1- (getint "\nCopying number: "))
- ugol (getreal "\nAngle of rotation: ")
- )
- (vl-cmdf "_copy" ptim "" "_non" t1 "_non" t2)
- (vl-cmdf "_rotate3d" "_last" "" "_2" "_non" t1 "_non" t2 ugol)
- (repeat kol
- (vl-cmdf "_copy" "_last" "" "_non" t1 "_non" t2)
- (vl-cmdf "_rotate3d" "_last" "" "_non" t1 "_non" t2 ugol)
- )
- )
如果一切正常,那么可以添加错误的输出代理,默认情况下输入。。。 |