Cab,
Thanks for your help. I do really appreciate it. Let's see if I can explain this.
The reasoning behind the naming of the blocks in the fashion I have there is that when I bind them to send to other contractors, I run into the problem of having two or three or four details with the same named block. When binding into the main sheet, they tend to get scaled to the sheet, all with the same name and basically, makes a general mess of things.
However, I do not necessarily want to create a new block each time it's used in the same drawing, but I do want to create a new block for 2x4, 2x6, 2x8, etc. in the same drawing. Another words, I do not want to use the 2x4 block for a 2x6, having to stretch it or scale it to get the desired size. And I can't use a generic block like a 2xTimber or 2xBlock naming system, basically I need individual pieces. But if I'm using five 2 x 4's, copying them would be fine.
Now I use the Timber much more than the Blocking, that's why I started with the 2 x 4 rather than the 2 x 4B as you did with your code.
I like your code though, it's clean. Helps me understand where I am goofing up. However, I have noticed even with your code, you cannot do an enter repeat for a 2 x 4, it crashes with the request of re-defining it.
This should be easily remedied though, something like this I'm thinking:
(mind you this is a rough draft, I'm not that good yet)
(if (= (tblsearch "block" (strcat bname "Timber" (itoa fn)
)
)
)
(command ".insert" blnm pause "" "" pause)
;else
(setq fn (+ fn 1)
)
Mind you this is just thrown together, I'm not efficient enough without researching and testing before being confident with my code.
More comments would be wonderful, please let me know what I can to do improve my work and leave some ideas of this code.
Thanks.