乐筑天下

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

[编程交流] Found a lisp from Tharwat (blo

[复制链接]

12

主题

56

帖子

46

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
58
发表于 2022-7-5 15:57:21 | 显示全部楼层
If I could Iwill but my computer doesn't USB port.:cry:
Thank you!!
 
回复

使用道具 举报

12

主题

56

帖子

46

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
58
发表于 2022-7-5 16:00:53 | 显示全部楼层
 
Hello maratovich
I tried your program,it's good for me. thank you very much.
By the way, one more question can it create name base on number?
example the text is 1 then blockname is 1 & the text is 2 then blockname is 2.......
回复

使用道具 举报

2

主题

261

帖子

20

银币

初来乍到

Rank: 1

铜币
8
发表于 2022-7-5 16:06:20 | 显示全部楼层
I do not understand everything.
Attach an example of how it should be.
回复

使用道具 举报

12

主题

56

帖子

46

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
58
发表于 2022-7-5 16:09:30 | 显示全部楼层
 
Pls try on file.....thanksexample.dwg
回复

使用道具 举报

2

主题

261

帖子

20

银币

初来乍到

Rank: 1

铜币
8
发表于 2022-7-5 16:12:03 | 显示全部楼层
I'm very busy right now. I'll check in a week.
回复

使用道具 举报

28

主题

317

帖子

292

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
140
发表于 2022-7-5 16:16:13 | 显示全部楼层
Try this one
 
  1. (defun c:QB2 ( / ss idx inspnt number Blockname itmss itm) ;inspired by Quick block from Tharwat (11. May. 2012) ;modified to automatically make block from texts in the current layout ;by Jef! on 2017-11-17  (command "._undo" "_be")  (if (setq ss (ssget "_X" (list '(0 . "TEXT") (cons 410 (getvar 'ctab)))))      (progn        (setq number 1              Blockname (strcat "MyBlock" (itoa number))              itmss (ssadd)        )        (repeat (setq idx (sslength ss))           (while (tblsearch "BLOCK" Blockname)                  (setq Blockname (strcat "MyBlock" (itoa (setq number (1+ number)))))           )                      (setq inspnt (cdr(assoc 10 (entget (setq itm (ssname ss (setq idx (1- idx)))))))                 itmss (ssadd itm)           )           (vl-cmdf "_.-Block" Blockname inspnt itmss "")           (vl-cmdf "_.-insert" Blockname inspnt "" "" "")        )      )  ) (command "._undo" "_e") (princ))
 
You owe 1 beer to Tharwat and 1 beer to me each time you execute it. Deal?

Cheers!
回复

使用道具 举报

12

主题

56

帖子

46

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
58
发表于 2022-7-5 16:19:52 | 显示全部楼层
 
 
 
 
Cheers!!It is very good for me,I owe you and Tharwat.Thanks a lot!!
回复

使用道具 举报

0

主题

3

帖子

3

银币

初来乍到

Rank: 1

铜币
0
发表于 2022-7-5 16:23:07 | 显示全部楼层
Tharwat script is excelent, but need a little help.. Instead of auto naming, is it possible to select a text or mtext as the block name after specifying the insertion point?
 
Any help would be appreciated....
 
Thanks
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-14 03:29 , Processed in 0.430621 second(s), 66 queries .

© 2020-2025 乐筑天下

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