如何自定义线性标注 ,并保持预览线
本帖最后由 一只傲娇喵 于 2023-11-20 16:30 编辑现在有一个需求,需要保存线性标注的三个点信息,如果直接选择三个点
(setq pt1 (getpoint "\n指定第一个点: "))
(setq pt2 (getpoint pt1 "\n指定第二个点: "))
(setq dimlinept (getpoint "\n指定尺寸线位置: "))
(command "_dimlinear" pt1 pt2 dimlinept "" )
这样虽然可以得到三个点的信息,但是创建的时候没有预览线,如下图,自带的标注可以看到预览线
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVUAAACHCAYAAACmjcq+AAAV/UlEQVR4Ae2dXawlR3HH7wPy+p1XJJT7QiIEsRQFBZLDA1KkRFEkMPjahnix8UdEyBW2FbANhuBcISJA0b5uHvIWxQ/JQ+LIwoIQpCTKlxQHZS0LOzZLWMdiWa92MYYlxOmo5pyeU/M/1XO675Q9fU//Vzqa6Z6emqqaql9X9zn23fuZn70h5H7e8rZfyh67TaanLHnWL7zz16vUzdPOWmV5+l7eZa121qoX/Z/PsMglz3eJ/t+LD8k5eiriKUt0R8Ny7EmN8dStBVmevpd30oLPPG2k/wnVrqL0DCpCta6gSk1Wuf2esdGCLEK1rvhnpWpsf7SQiJ42MqnrSurcySs1zjM2WpCF8U+oEqqT96IxqFLJmtvfQiJ62kj/1zWpEaqEKqFqxIA1AXiC0FMWoUqock81M4kxsT0T0VMWk7qupMa4KW17xkYLsjD+98To3M9bb3h39thtMj1lybN+8Zd/s0rdPO2sVZan7+Vd1mpnrXrR//kMi1zyfJfofy7/japRHF86u6fGtyALZ+qUL3L7W/CZp430f10rBUKVUJ08gTCp60rq3MkrNc4T+C3IwvgnVAlVQtWIAQs4tQICk9rSvaSvVjtr1Qv9T6gaCVXry6tVLwyqkgS2xtZqZ6160f91rRQIVUKVlaoRAycJ9oQqodolseesLwngGVieurUgy9P38i5b8JmnjfQ/oUqoZlZGWC15JqKnLCZ1XUmNcVPa9oyNFmRh/HP5bwCuhUDwtBGDqjSJcbynbi3Iov/rmtQI1R2Gaggh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TqoQqoWrEgAUdz0T0lIVJbele0uepWwuy0P+EqpFQLQSCp40YVCUJbI311K0FWfR/XSsFQpVQZaVqxMBJgj2hSqjy2//MJMbErrXqYlLXldQYN6XtWuOsVr0w/lmpGoCr9eXVqhcGVWkS4/ha7axVL/q/rkmNUCVUufw3YgBBL21CdV54nRT/E6pGQtX68mrVi5XSvLCh/+vyP6FKqLJSNWKAlWo5qE6SzzwLFJzU/h8FG07mmO/CLAAAAABJRU5ErkJggg==
怎么才能又保持预览线又保存三个点呢
dimlinept不用先指定
(command "_dimlinear" pt1 pt2 pause "" )
wzg356 发表于 2023-11-20 16:30
dimlinept不用先指定
(command "_dimlinear" pt1 pt2 pause "" )
谢谢大佬,
页:
[1]