I need to insert the same block from a tool palette multiple times into my drawing. Is there a way to do this without having to pick the block from the tool palette every time I want to insert it?
write a macro that repeats the command (including the blockname) or insert it once and use command _COPY or insert it once, click onto the block so it gets selected, then use right click with option "add selected".
- alfred -
Try the MUTLIPLE command.
After you enter MULTIPLE in the command line it will ask you to enter the command name to repeat... Then you can simply click on the tool in the Tool Palette and then pick away...
Hope this helps
Thanks for the reminder of the MULTIPLE command. This is a perfect application of it and one I forget myself often enough!
Thx for all the advice. I only have about 4 or 5 blocks that I need to do this with.So I wrote a separate macro for each block that keeps repeating itself repeats itself until you hit escape. Seems to work fine.
I am curious to know the macro that worked for you.
I am wondering if you used the * symbol at the beginning of the macro. This is supposed to repeat the command but i haven't been able to get it to work - i'm doing something wrong...
Here is the macro:
This inserts a block called RECEPT. It prompts for the insertion point, scales the block at a scale factor of !sf and then prompts for the rotation angle. It then changes the layer to DVW and repeats itself.
The * at the beginning is what makes it repeat.
!sf is a scale factor that I previously defined in my drawing templates.
I am bringing this block in from a tool pallette. I had the properties set to layer DVW and color bylayer. The first block came in correct. But when the command repeated itself and brought in the next block, the layer was correct but the color was wrong. I had to add the clayer;dvw at the end to take care of this problem.
For blocks that do not insert multiple times, I drop the clayer;dvw from the end of the macro
Hope this helps.
Hope this helps.
Generally when I bring blocks in from a tool palette they have layer properties defined. The fact that you needed to reset the color (if I caught that correctly) suggests that your original block may not have been created on Layer 0. The advantage of creating blocks on Layer 0 is that when they are inserted they assume the color properties of the layer they're placed on.
I checked that - they are on layer 0. What is happening is in the block properties on the tool palette, I have the layer set to DVW and color set to bylayer (the color for layer DVW is 6). If my drawing is presently set to layer TXT (which is color 10), and I bring in the block from the tool palette, the first block comes in correctly on layer DVW and color 6. However, when the command repeats itself and brings in the next block it comes in on layer DVW color 10. And when I check the properties of the block, it says it is layer DVW color bylayer, which is obviously wrong. For some reason, when the command repeats itself, it is maintaining the correct layer, but it is defaulting to the color of the layer that was current when the command started. Adding the clayer;dvw to the end of the macro was the only way I was able to correct this.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.