明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: cj52000

[求助]关于坐标标注的问题(附图),各位请进!

  [复制链接]
发表于 2009-10-17 21:05:00 | 显示全部楼层
  1. (defun c:md(/ DXF70 ENT ENTDXF)
  2.   (if (setq ent (entsel))
  3.     (progn
  4.       (setq ent (car ent))
  5.       (setq entdxf (entget ent))
  6.       (setq dxf70 (cdr (assoc 70 entdxf)))
  7.       (if (= dxf70 38)(entmod (subst (list 14 (cadr(assoc 14 entdxf)) (caddr(assoc 13 entdxf)) (cadddr(assoc 14 entdxf))) (assoc 14 entdxf) entdxf)))
  8.       (if (= dxf70 102)(entmod (subst (list 14 (cadr(assoc 13 entdxf)) (caddr(assoc 14 entdxf)) (cadddr(assoc 14 entdxf))) (assoc 14 entdxf) entdxf)))
  9.       )
  10.     )
  11.   (princ)
  12.   )
发表于 2009-10-17 21:28:00 | 显示全部楼层

insufficient display

要以原图(*.dwg) 为准
(请上传)

且一并列出其余实务状况.....
(方便调试之用....)

 楼主| 发表于 2009-10-18 02:31:00 | 显示全部楼层
谢谢sailorcwx的程序,很好用,正合我意,就是能不能提个小小要求,如果要是能多选就好了,不用一个个点,能否帮忙改下,谢谢大家的热心!
 楼主| 发表于 2009-10-20 18:57:00 | 显示全部楼层

sailorcwx兄,请关注我的另一个贴子:

http://bbs.mjtd.com/forum.php?mod=viewthread&tid=78806

和您写的那个程序有点相反,谢谢!

发表于 2009-10-20 19:46:00 | 显示全部楼层

我一般标注成直的就是直的,折线行式的也就随它了

不过还是等待高手的出现,我也很想知道答案。

发表于 2009-10-21 00:06:00 | 显示全部楼层

我很奇怪,同样是手动标注,但有些坐标标注为什么会是230的dxf组码,将11楼的程序改成支持多选,但是230的标注使终改不了!

;by sailorcwx
(defun c:qa(/ DXF70 ENT ENTDXF)
    (setq os (getvar "osmode"))
    (setvar "cmdecho" 0)
    (command "undo" "be")
    (setq ss (ssget '((0 . "DIMENSION"))))
    (setq i 0)
    (while (< i (sslength ss))
       (setq ent (ssname ss i))
       (setq entdxf (entget ent))
       (setq dxf70 (cdr (assoc 70 entdxf)))
       (if (= dxf70 38)(entmod (subst (list 14 (cadr(assoc 14 entdxf)) (caddr(assoc 13 entdxf)) (cadddr(assoc 14 entdxf)))

(assoc 14 entdxf) entdxf)))
       (if (= dxf70 102)(entmod (subst (list 14 (cadr(assoc 13 entdxf)) (caddr(assoc 14 entdxf)) (cadddr(assoc 14 entdxf)))

(assoc 14 entdxf) entdxf)))
       (if (= dxf70 230)(entmod (subst (list 14 (cadr(assoc 13 entdxf)) (caddr(assoc 14 entdxf)) (cadddr(assoc 14 entdxf)))

(assoc 14 entdxf) entdxf)))
       (setq i (+ i 1))
     )
    (setvar "osmode" os)

    (command "undo" "e")
    (princ)
)

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-6 09:29 , Processed in 0.172301 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表