乐筑天下

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

[编程交流] CountV1-3.lsp by Lee Mac

[复制链接]

17

主题

87

帖子

70

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
85
发表于 2022-7-5 23:03:10 | 显示全部楼层 |阅读模式
First of all ....Great tool!!
 
But... It's possible to make some changing?
 
1) It would be great if in the table all blocks use is right layer/color (actually everything is on the same layer).
2) It's possible with a regen command (or something other) that culumn "Count" automatically update if i make a change into the plan?
 
Lee Mac??
回复

使用道具 举报

17

主题

87

帖子

70

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
85
发表于 2022-7-5 23:31:06 | 显示全部楼层
UP ?
回复

使用道具 举报

24

主题

1265

帖子

1028

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
362
发表于 2022-7-5 23:35:19 | 显示全部楼层
You might try contacting Lee directly.
 
http://lee-mac.com/contact.html
回复

使用道具 举报

17

主题

87

帖子

70

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
85
发表于 2022-7-6 00:01:44 | 显示全部楼层
Thanks, i'll trying.
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-6 00:10:06 | 显示全部楼层
 
Thank you, I'm glad you like it.
 
 
The image of the block displayed in the table is taken directly from the objects found in the block definition, and hence the image will display the objects on whichever layer they appear in the block definition.
 
What exactly is the 'correct layer' if two or more block references are assigned different layers in the drawing?
 
 
This is theoretically possible to achieve by using Command Reactors to monitor events which could generate additional blocks in the drawing, such as INSERT, EXECUTIONTOOL (for Tool Palettes), COPY, ARRAY, MIRROR, ROTATE etc, and update the table contents accordingly.
 
However, this would be incredibly complex and problematic to implement.
 
A far simpler solution would be to use either a DWG Reactor, Editor Reactor to monitor the BeginSave event (or even a Command Reactor monitoring when the QSAVE/SAVE/SAVEAS commands are issued), and instruct the reactor callback function to automatically delete and recreate the block table by obtaining a selection based on the block names listed in the second column.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-11 03:29 , Processed in 1.294678 second(s), 62 queries .

© 2020-2025 乐筑天下

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