Jump to content

would it be possible to add tool palatte item to right click menu


samifox

Recommended Posts

Like tombu you can use say a "if not steal then load it" and you can run it as a command without using the dcl where you know dwg name and block name. I have used it that way now where is code.

 

;;                       --------------------------------------------------                      ;;
;;                              Calling the Program as a Subfunction                             ;;
;;                       --------------------------------------------------                      ;;
;;                                                                                               ;;
;;  The program may also be called with optional parameters so that users may bypass the dialog  ;;

Edited by BIGAL
Link to comment
Share on other sites

On 9/8/2022 at 7:11 AM, samifox said:

I mean an item to withdraw a block from another dwg.

I assume you mean to import a block definition from another drawing?

 

If you reply with the full path and name of that drawing and lists of block names or anything else you want from that drawing we'll reply with a command macro you can add if you save Lee Mac's lisp in a Support folder. This is an example that imports all the Dimension Styles from a template file into the current drawing.

^C^C^P(or C:Steal (load "StealV1-8.lsp"))(Steal (strcat (vl-filename-directory (getenv "QnewTemplate")) (chr 92) "AutoCAD Template" (chr 92) "Templates.dwt") '(("Dimension Styles"("*")))) .regen

 

I have right-click menus for every object type in AutoCAD and use them for modifying objects without having to look for a command on the ribbon. Not so much for something like this but if it's something you use a lot it makes sense.

 

If you use blocks and other items from that drawing here's a macro using the  to open Design Center to a drawing with all the MUTCD sign blocks we us for quick access for inserting whatever we need you could update with your path and drawing name.

^C^C^P(command "adcnavigate" "G:/ENGDESGN/BeaufordT/Blocks/mutcdByBlockLay0.dwg") 

Another macro example to insert block EM-7AR from drawing G:/ENGDESGN/BeaufordT/Blocks/mutcd.dwg using the -INSERTCONTENT (Command)

^C^C-INSERTCONTENT G:/ENGDESGN/BeaufordT/Blocks/mutcd.dwg;EM-7AR;

Lots of ways to do this.

Edited by tombu
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...