本帖最后由 vitalgg 于 2024-4-27 14:14 编辑
- (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))))
- (defun c:tt ()
- "图块中心点连线"
- (if (null(tblsearch "layer""你好123")) (layer:make "你好123" 2 nil nil))
- (setq ents (pickset:sort (pickset:to-list (ssget '((0 . "insert"))))"xy" 0.1))
- (entity:putdxf
- (entity:make-lwpolyline
- (mapcar '(lambda(x)
- (point:centroid (entity:getbox x 0)))
- ents)
- nil
- 0 0 0)
- 8 "你好123")
- )
|