Jump to content

Repeat last command insert block?!


Butch

Recommended Posts

Ive customized my right mouse button click so it repates last command.

Yesterday I created an custom tool pallet and created few blocks.

After I insert a block from my tool pallet, right click is no longer repating my last command, what its doing is inserting that last block that Ive inserted from my tool pallet:x

 

So I could insert block in my drawing, then draw something with a line, then maybe mirror something, then maybe copy it, and then if I hit my right mouse botton in order to repate my last command ( in this case copy) it wants to insert my last block from tool pallet!

 

Why and help:(

Link to comment
Share on other sites

You mean how did I add the blocks to the custom palette?

I drag the block from the working window (model space) directly to the pallet window...drag&drop

Link to comment
Share on other sites

I never knew you could do that.... Just tried it in '04 and don't think you can in '04.

 

If I were you to avoid the problems, just set up a simple button macro to insert your block, then you know will repeat as normal.

 

You could make a call to just something simple like this:

 

(defun c:insblk (/ bNme)
 (setq bNme "[b][color=Red]BLOCK1[/color][/b]")
 (cond ((or (tblsearch "BLOCK" bNme) (findfile (strcat bNme ".DWG")))
    (command "-INSERT" bNme pause "" "" ""))
   (T (princ "\n<!> Block not Found <!>")))
 (princ))

 

Where you would substitute your block name for BLOCK1.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...