明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 623|回复: 3

[讨论] 插入块,先按比例缩放,再指定插入点.可以实现吗?

[复制链接]
发表于 2020-10-19 22:52 | 显示全部楼层 |阅读模式
20明经币
在插入块时,利用"DIMSCALE"来进行缩放,但是在指定插入点之前图块不能先预览缩放的效果。
有什么方法可以让"pause"在缩放后,再指定插入点呢?

(defun c:av ( / DS )
  (command "undo" "be")
  (SetQ DS (GETVAR "DIMSCALE"))
  (command "insert" "note" pause DS DS 0)
  (command "explode" (entlast))
  (command "undo" "end")
  (princ)
)



最佳答案

查看完整内容

纯命令,凑合用吧 (defun c:tt5 (/ DS) (command "undo" "be") (SetQ DS (GETVAR "DIMSCALE")) (command "insert" "note" '(0 0) DS DS 0 "copybase" "non" '(0 0) (entlast) "" "ERASE" (entlast) "" "PASTECLIP" pause) (command "explode" (entlast)) (command "undo" "end") (princ) )
发表于 2020-10-19 22:52 | 显示全部楼层
纯命令,凑合用吧
(defun c:tt5 (/ DS)
        (command "undo" "be")
  (SetQ DS (GETVAR "DIMSCALE"))
        (command "insert" "note" '(0 0) DS DS 0 "copybase" "non" '(0 0) (entlast) "" "ERASE" (entlast) "" "PASTECLIP" pause)
  (command "explode" (entlast))
  (command "undo" "end")
  (princ)
)

点评

高手  发表于 2020-11-9 21:37

评分

参与人数 1明经币 +1 收起 理由
xvjiex + 1 CAD基础扎实

查看全部评分

回复

使用道具 举报

 楼主| 发表于 2020-10-20 09:58 | 显示全部楼层
谢谢!几个都认识,就没想到哦
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 21:47 , Processed in 0.187166 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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