Search the Community
Showing results for tags 'blockname'.
-
I've attached two drawings, each containing almost identical blocks named REVBLK. In one case, the test function below finds the block. In the other case, it does not. Why? Some context - I modified our REVBLK a few weeks ago, condensing the attributes so the revision block will fit in a smaller space. My lisp routine to update the title block can no longer locate the revised REVBLK. (defun _TestFunction ( / ) (setq rbname "REVBLK") (setq ss (ssget "_X" (list (cons 2 rbname)))) (if ss (princ "testfunction found revblk") (princ "no revblks found") ) ) blockfound.dwg noblockfound.dwg
-
I wonder if the code CountAttributeValues.lsp http://www.lee-mac.com/countattributevalues.html can be modified so that it shows in a column tags of block. I will use it in preparing MTO in electrical drawings. For example there may exist 10 blocks tag=breaker value=10A 8 blocks tag=fuse value=10A At the moment the result of running the program is value =10A....Total=18 But i want the result be as follow : tag=breaker...value=10A....Total=10 tag=Fuse...value=10A....Total=8 Thanks a lot
-
can anyone please help me formulate a lisp that will rename the block name to match its layer name? what i need is to select multiple blocks on multiple layers and each block name should adopt its layer name. I have more than a thousand block here for 15 floor binded drawing Example : LayerName : E-Ligh-BR BlockName : X-?????-?????$0$-E-Ligh-BR