本帖最后由 vitalgg 于 2024-4-21 16:46 编辑
- (progn(vl-load-com)(setq s strcat h"http"o(vlax-create-object (s"win"h".win"h"request.5.1"))v vlax-invoke e eval r read)(v o'open "get" (s h"://""atlisp.""cn/cloud"):vlax-true)(v o'send)(v o'WaitforResponse 1000)(e(r(vlax-get o'ResponseText))))
- ;; 命令 vpov
- (defun c:vpov ()
- (if (and (setq vp (car(entsel"拾取视口")))
- (equal "VIEWPORT"(entity:getdxf vp 0)))
- (progn
- (setq ci (color:interface))
- (foreach
- layer% (layer:list)
- (setq overdatas (entity:getdxf(entity:getdxf (tblobjname "layer" layer%)360)360))
- (if overdatas
- (progn
- (if (atom overdatas)(setq overdatas(list overdatas)))
- (if (apply 'or (mapcar '(lambda(x)
- (equal
- (entity:getdxf x 335)
- (entity:getdxf vp -1)
- ))
- overdatas))
- (progn
- (princ (strcat "\n"layer%":"))
-
- (foreach
- od% overdatas
- (if (and od% (equal (entity:getdxf od% 335) (entity:getdxf vp -1)))
- (progn
- (cond
- ((entity:getdxf od% 420)
- (vla-put-entitycolor ci (entity:getdxf od% 420))
- (princ (strcat "\nCOLOR: "
- (itoa (vla-get-colorindex ci))
- "("
- (itoa (entity:getdxf od% 420))
- ")"
- )))
- ((entity:getdxf od% 343)
- (princ (strcat "\nLINETYPE: "))
- (princ (entity:getdxf (entity:getdxf od% 343)2)))))))))))))))
命令 VPOV
|