bono05 发表于 2022-7-5 23:03:10

CountV1-3.lsp by Lee Mac

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??

bono05 发表于 2022-7-5 23:31:06

UP ?

rkmcswain 发表于 2022-7-5 23:35:19

You might try contacting Lee directly.
 
http://lee-mac.com/contact.html

bono05 发表于 2022-7-6 00:01:44

Thanks, i'll trying.

Lee Mac 发表于 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.
页: [1]
查看完整版本: CountV1-3.lsp by Lee Mac