samifox Posted September 8, 2022 Share Posted September 8, 2022 hi would it be possible to add tool palatte item to right click menu? i mean an item to withdraw a block from another dwg. Tx Shay Quote Link to comment Share on other sites More sharing options...
tombu Posted September 8, 2022 Share Posted September 8, 2022 Lee Mac's Steal from Drawing lisp allows you to add a list of block definitions from another drawing which I use in command macros. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 9, 2022 Share Posted September 9, 2022 (edited) 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 September 9, 2022 by BIGAL Quote Link to comment Share on other sites More sharing options...
tombu Posted September 9, 2022 Share Posted September 9, 2022 (edited) 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 September 9, 2022 by tombu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.