How to modify the CountInArea for a table

How to modify the CountInArea for a table

skG764U
Explorer Explorer
441 Views
5 Replies
Message 1 of 6

How to modify the CountInArea for a table

skG764U
Explorer
Explorer

I just started to use the Count commend in autocad 2025 to create a lighting fixture schedule. I want to be able to copy the table to different drawing and have it update with the numder of each lighting fixture. I figured out how to get the name of the new countinarea for each drawing. Is there away for me to update the new countinarea for each field in my existing table to the new area except going one by one in the table and editing the field to the new area?

 

Does anyone has a lisp to enter the old area name then the new area name and have it update the countinarea in all the fields of the table?

 

Any help woud be greatly appreciated.

0 Likes
442 Views
5 Replies
Replies (5)
Message 2 of 6

Sea-Haven
Mentor
Mentor

I don't think you can do what you want change an object in one dwg and watch in another dwg a value change. Within one dwg using fields will update. But you would need to copy say the table to the other dwg. If you could do a partial Xref then that would be the answer but pretty sure does not exist. Problem with xref is you get all the dwg, which may be the only way. Something like using datalink. You can using datalink imply a range of Excel cells. 

 

There is some suggestions about using Wblock say of a table then xref that into your other dwg, but it is flawed if you update dwg1 and don't do the Wblock dwg2 will not reflect correct answer.

 

Some one else may correct me so learning some thing new again.

 

 

0 Likes
Message 3 of 6

skG764U
Explorer
Explorer

Thanks Sea-Haven. 

What I'm trying to do is create a Lighting Fixture Schedule with our standard symbols and description and use that on our plans. Be able to take that standard schedule and put it on a drawing and have it count thee number of each type in a certain area. I'm able to use the count command and make a table for a certain area but i don't want to have to recreate the table from scratch every time and re-insert our symbols into the table. I found where in the edit field i can change the area the field is looking but it makes me do it one by one. I was hoping there would be a lisp to run through each field in the table to update the area it's looking in for the count.

Hope this explains better what i'm looking for.

0 Likes
Message 4 of 6

Sea-Haven
Mentor
Mentor

Ok if in same dwg the table can be anywhere in the dwg compared to where the objects are. But you would use a custom make table, so that leads into the so many examples posted here. You can predefine or make a table style to suit, then blocks as symbols can be inserted into a table, plus name & count. 

 

So need 2 things a dwg with some blocks and it contains the correct table re text size, column widths etc.

0 Likes
Message 5 of 6

gregy12345
Community Visitor
Community Visitor

Hi @skG764U

I'm having the same problem and I didn't find any solution. Maybe lisp will help but my company uses AutoCAD 2023 LT and lisp is not supported in this version. I have to wait for update. Till than I have to rewrite every "count" cell in every table I copy.

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

 Upgrading your Lt2023 have a look at Bricscad, as the LT lisp is missing functions, its like a cut down version compared to the Autocad version. Some powerful features can not be done like read & write to Excel.

0 Likes