AQucsaiJr Posted October 15, 2009 Share Posted October 15, 2009 Is there a way for me to edit a block description so that when I hover over the block icon on my tool palette, it will show a description of what the block is supposed to be used for? The blocks I want to do this for are within a drawing if that makes a difference. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 15, 2009 Share Posted October 15, 2009 So you want to create a "tool tip" for your block right? Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 I am not sure what it is called. I want a description of the block to show up when you hover the mouse over the block icon in the palette. However all my blocks are already made and I need to add this function to them. Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 Can the description be displayed with Tool tips or Quick Properties? Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 Can the description be displayed with Tool tips or Quick Properties? I guess I do not know enough about either of those to answer your question. I am using ACAD 2010, and when I hover my mouse over any icon in the tool palette, a description comes up right below my mouse arrow. Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 I guess I do not know enough about either of those to answer your question. I am using ACAD 2010, and when I hover my mouse over any icon in the tool palette, a description comes up right below my mouse arrow. Ohhhhh, Tool Palettes. I missed that. If you right click on the icon, from the properties, you can add a description. Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 Ohhhhh, Tool Palettes. I missed that. If you right click on the icon, from the properties, you can add a description. Ya I found this option. Do you know, if I change or add a description this way, does the description stay with the palette icon or does it stay with the block? I ask because I create drawings that contain multiple blocks for my clients and then send the drawings to them. They want these descriptions on the blocks when they are sent. Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 Ya I found this option. Do you know, if I change or add a description this way, does the description stay with the palette icon or does it stay with the block? I ask because I create drawings that contain multiple blocks for my clients and then send the drawings to them. They want these descriptions on the blocks when they are sent. That's just for Tool Palettes. Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 Dang... Do you know a way to change or add a description to an existing block? Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 Dang... Do you know a way to change or add a description to an existing block? Here's something simple: ;;; Edit Block Description ;;; Required Subroutines: AT:GetString ;;; Alan J. Thompson, 10.16.09 (defun c:EBD (/ #Obj #Name #Block #Desc) (and (setq #Obj (car (entsel "\nSelect block to add description: "))) (eq "INSERT" (cdr (assoc 0 (entget #Obj)))) (if (vlax-property-available-p (setq #OBj (vlax-ename->vla-object #Obj)) 'EffectiveName) (setq #Name (vla-get-EffectiveName #Obj)) (setq #Name (vla-get-Name #OBj)) ) ;_ if (setq #Block (vla-item (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object))) #Name)) (setq #Desc (AT:GetString "Change block description:" (vla-get-comments #Block))) (vl-catch-all-apply 'vla-put-comments (list #Block #Desc)) ) ;_ and (princ) ) ;_ defun You'll need this subroutine: http://www.cadtutor.net/forum/showpost.php?p=271370&postcount=14 Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 What type of file is the Getstring file? .lsp? Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 What type of file is the Getstring file? .lsp? .lsp It's just a subroutine, it can placed in the same file as the main. Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 Ya I just figured that out... posted quicker than I was thinking... sorry... Do I just paste it at the end of the EBD routine, after the defun? *Sweet... That works perfect... Thanks alanjt. Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 Ya I just figured that out... posted quicker than I was thinking... sorry... Do I just paste it at the end of the EBD routine, after the defun? *Sweet... That works perfect... Thanks alanjt. Glad you figured it out, I was making breakfast with my 2 year old. Always happy to help. Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 Glad you figured it out, I was making breakfast with my 2 year old. Always happy to help. Haha... Hope it goes well... Thanks for the help. Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 16, 2009 Share Posted October 16, 2009 Haha... Hope it goes well... Thanks for the help. Bacon, eggs, coffee, toast and help from a 2.5 year old. Actually, she's really good about helping. She pours in the coffee and hands me the eggs. No problem. Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 16, 2009 Author Share Posted October 16, 2009 So now I have another problem... I have already created the tool palettes I need with all the blocks I need in them and my client has desided that they want this feature I have been trying to figure out. They want the description to come up when the mouse is held over the image of the block in the tool palette. My problem is, how do I get the description that I give to a block to carry over to the image on the tool palette without having to go through and delete all the blocks in the palette and start over? I have tried to add the description to the block and save the block and the drawing it is in. No change to tool palette. I know you can right click on the image of the block on the tool palette and change it there but that does not carry to the block, just the tool palette, and they dont want that. Any ideas?? Quote Link to comment Share on other sites More sharing options...
AQucsaiJr Posted October 19, 2009 Author Share Posted October 19, 2009 Anyone know a quick way to update the description on a block and have it carry over to the description of that block in the tool palette? 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.