本帖最后由 vitalgg 于 2024-5-28 11:18 编辑
- ;; 加载所需的函数
- (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))))
- ;; 用block:ent-list得到块内图元,再用pickset:getbox 得到块内图元集的包围盒
- (pickset:getbox (block:ent-list "块名") 0) ; 得到的是块内的坐标系值
|