- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good morning!
I've been putting together lisps by researching here, mashing things together/trial and error until I'm able to get it to work as I want. But I've been struggling to get this one going (and another one that I'll make a different post for "here")
This one is about "replacing" a selected Block.
The reason why I'm using quotes is because I don't want to Replace the Block reference and Update all, which seems to be the most common lisps when I try to search.
I want to select a block, one at a time, out of many of the same.
In the command I want it to read which block was selected out of 7 options. Depending on which one it is, BLOCK1 gets erased and BLOCK11 is inserted in the same spot. and that insertion point will prompt the following commands to insert another block (BLOCK111) with 3 different options.
The second portion of selection I'm not too concern about because it will be a selection imputed by the user. And I already have an idea on how to work that out.
My problem is that I can't figure out how set it up to use the selected block (or to select a block) instead of a point. I can set it up to insert the BLOCK11 on the right spot. But can't get it to delete BLOCK1. But most of all that it shouldn't affect any of the others blocks of the same name in the drawing.
Please help. I'm not even sure if it is a possibility, specially since I haven't found anything similar.
I'll be working on the continuation of the command. And in case this portion can't be fixed then I'll just set it up to Insert the Blocks (BLOCK11 and BLOCK111) only. But it would still be extremely helpful to have it read the name of the BLOCK1 (since I still have options 1-7) to promp the following insertions.
Solved! Go to Solution.