乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 34|回复: 4

[编程交流] Burst block with attributes +

[复制链接]

25

主题

106

帖子

85

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
121
发表于 2022-7-5 19:50:25 | 显示全部楼层 |阅读模式
could somebody help me with writing a lisp , I found one lisp with bursting I tried to finish it but I am not master , probably I am doing something wrong :
  1. (defun C:XXP ( / ssAll drwordr ss) (setq ssAll (ssget "X" '((0 . "INSERT")))      drwordr (getvar "draworderctl") ) (setvar "draworderctl" 0);supress warnings (sssetfirst nil ssAll) ;makes ssAll both gripped and selected.  (c:burst) (setvar "draworderctl" drwordr) (setq ss (ssget "x" '((0 . "*TEXT"))) (c:group));end defun
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 20:19:10 | 显示全部楼层
Why not just read all the attribute values and convert to Mtext ? Then erase block. The only hiccup is the mtext would be in creation order but you could get around that.
回复

使用道具 举报

25

主题

106

帖子

85

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
121
发表于 2022-7-5 20:29:40 | 显示全部楼层
In this example you will understand why
22.dwg
回复

使用道具 举报

25

主题

106

帖子

85

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
121
发表于 2022-7-5 20:47:31 | 显示全部楼层
I have to work after that with that text , , I dont need to delete nothing here , everything should stay at his place
回复

使用道具 举报

106

主题

1万

帖子

101

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1299
发表于 2022-7-5 20:54:23 | 显示全部楼层
Do you want the text to be basicly a copy of what is in the block and at the same location ? The simple way is to COPYCLIP and paste it back in move it out of the way burst it move the text back and then erase whats left. The other way is a lisp reading the attributes and just writings as text. Can you paste an image showing before and after result, its no good writing something and its not what you want.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-12 02:08 , Processed in 0.671604 second(s), 73 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表