Is there a way to dynamically link a label with a block?
For instance, if you have a block in a drawing, and want to label the number of times the block appears in the drawing, is there a way to do that? And have it be dynamically linked so that if I were to delete one of those blocks, it will automatically update the label?
It will take some light progamming to do this, but it's very possible.
Fields allow you to reference an AutoLISP variable, so you could make a function that counts the blocks and creates a variable of the count. A reactor would be present to update the variable any time you insert, copy, erase. Another reactor could update the field, so you don't have to regen to see the results.
TJ,
How about using Attributes? Architects do this all the time with the number of doors, light switches, banquet tables, etc, linking them dynamically to a table. The table in your case would be just one cell.
Dave
Dave Stoll
Las Vegas, Nevada
The DATAEXTRACTION command is built to do that with no need for additional programing.
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Joe,
Every day I learn something new on this Forum. Thank you.
Dave
Dave Stoll
Las Vegas, Nevada
Hi Tim
Kind of.
By default you will be prompted to update on plot & publish. You can tweak the system variabl DXEVAL to update in different ways, and/or not even get the prompt.If I understand it correctly setting DXEVAL= 480 would be unencumbered updates on plot, publish, save and etransmit. I use 15 to have updates on plot publish and save (regen would be good but that the best I have); sometimes I like to say no - for whatever reason.
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi Dave
And it can do much more than count blocks; add areas, length, do calculations; convert units, yada yada
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
I use that command all the time to count parking spaces with this block.
Really convenient export to csv open in excel add a couple expressions to the end and you done.
Rick Jackson
Survey CAD Technician VI
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi RL
check this one out; regen after stretch
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Rick Jackson
Survey CAD Technician VI
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Rick Jackson
Survey CAD Technician VI
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.