wary faraj Posted September 12, 2012 Posted September 12, 2012 hi guys I really want to help me to attach an image and hide it, but when the user take the mouse over the hidden image, he/she can see it, for example I want to send a daily report to my manager and I want to attach some Image in the drawing and hide it, But it can be seen by moseovering please help I really in need it thank you I really appreciate your help for me Quote
ReMark Posted September 12, 2012 Posted September 12, 2012 Why not just put the image on a layer that is frozen? Another option: use the Hide&Show lisp routine as posted at CADALYST magazine 09/05 Tip2058: (Turn Objects Invisible or Visible ©) by 2005 Andrzej Gumula. Quote
BlackBox Posted September 12, 2012 Posted September 12, 2012 Wait... So you send daily reports to your manager via DWG? Quote
ReMark Posted September 12, 2012 Posted September 12, 2012 Sounds like something that is done on web pages with javascript. CADTutor has a tutorial about creating a rollover image as part of doing web design. http://www.cadtutor.net/tutorials/web-design/creating-an-image-rollover.php Quote
wary faraj Posted September 12, 2012 Author Posted September 12, 2012 thank you very much ReMark but please if you can please upload this lisp for me, the first option isn't work for me please I want to hide the image and appear when I take a mouse over an object like a line or circle thank you again Why not just put the image on a layer that is frozen? Another option: use the Hide&Show lisp routine as posted at CADALYST magazine 09/05 Tip2058: (Turn Objects Invisible or Visible ©) by 2005 Andrzej Gumula. Quote
ReMark Posted September 12, 2012 Posted September 12, 2012 Did you read my last post? #4 OK...here is a copy of the Hide&Show lisp routine. You just have to remove the .TXT from the file name and you're good to go. Remember that this routine was written by someone else. If you alter it in any way you should give the author his due recognition in the header. Hide&Show.lsp.TXT Quote
wary faraj Posted September 12, 2012 Author Posted September 12, 2012 yeah exactly you are right... Sounds like something that is done on web pages with javascript. CADTutor has a tutorial about creating a rollover image as part of doing web design. http://www.cadtutor.net/tutorials/web-design/creating-an-image-rollover.php Quote
wary faraj Posted September 12, 2012 Author Posted September 12, 2012 yeah I attach a dwg file with my report and send it via e-mail Wait... So you send daily reports to your manager via DWG? Quote
BlackBox Posted September 12, 2012 Posted September 12, 2012 ... I'll see if I can't add :vlr-Hover to my list of custom Mouse Reactor Events... Quote
wary faraj Posted September 12, 2012 Author Posted September 12, 2012 Yeah I tried this one but it is great, but I want one that hides the image and show it by just mouseovering one object, like this image below thank you very much Did you try the lisp I posted? Quote
ReMark Posted September 12, 2012 Posted September 12, 2012 I gave you a couple of suggestions. Now it is up to you unless Renderman thinks of something. Quote
BlackBox Posted September 12, 2012 Posted September 12, 2012 ... Thinking of something was the easy part It's the implementation (and prerequisite coding, debugging, etc.) that's the problem, in order to allow for Visual LISP to interface with the :vlr-Hover Event (aka MouseHover in Windows Forms speak)... And that's *IF* the .NET API permits such customization (not sure)!? ... Otherwise, it's off to ObjectARX (C++ for AutoCAD), and even that may not support such customization. Quote
Murph_map Posted September 12, 2012 Posted September 12, 2012 ... Thinking of something was the easy part It's the implementation (and prerequisite coding, debugging, etc.) that's the problem, in order to allow for Visual LISP to interface with the :vlr-Hover Event (aka MouseHover in Windows Forms speak)... And that's *IF* the .NET API permits such customization (not sure)!? ... Otherwise, it's off to ObjectARX (C++ for AutoCAD), and even that may not support such customization. Well it's been five hours since you thought of it, Done yet? Quote
BlackBox Posted September 13, 2012 Posted September 13, 2012 Well it's been five hours since you thought of it, Done yet? ........ Quote
BlackBox Posted September 13, 2012 Posted September 13, 2012 Giving this topic more thought, AutoCAD already supports MouseHover Events (i.e. Tool Tips, etc.). Mind you I have tested nothing yet, but thinking out loud so-to-speak, I wonder if there's a way to employ Grread in this situation... Which would preclude the need for any custom code (other than the LISP itself, of course). Admittedly, I do not use this function in any of my routines, but I know that others have been quite successful. Quote
BlackBox Posted September 13, 2012 Posted September 13, 2012 ... Adding to my previous post, the use of Grread would also require this be a LISP Command, and not a true Reactor/Event Monitor, although, conceptually speaking, methinks this command would involve a SysVar Reactor to monitor the DYNMODE System Variable, which is repeatedly cycled on/off when using something like this: (defun c:FOO (/ gr) (while (and (setq gr (grread 5)) (= (car gr) 5)) (print (cadr gr)) ) (princ) ) ... More information (and yes, time ) is needed; but more to follow as well. Quote
BlackBox Posted October 9, 2012 Posted October 9, 2012 (edited) ** Update - I thought I'd get back into this old thread a bit... As it happens, I was mistaken about the requirement for incorporating the MouseHover Event handler (a real shock to anyone who knows me ). While I've not finished coding the entire plug-in that does everything that the OP has requested here (to toggle the image on/off by hover), the draft version (attached) adaptation uses the Editor.PointMonitor Event handler to detect what entity is being hovered upon (in this case it looks for when you hover the frame of an raster image), and subsequently displays a ToolTip reporting the image, the Layer on which it resides, the image Name, and Path Properties. As this is just a draft, I am not going to waste others' time by posting the source-code... If you'd like to take a crack at coding this yourself, feel free, as my draft offering is an adaptation of Kean's and Tony's code here: Providing information on AutoCAD objects in a tooltip using .NET To test the plug-in attached to this post, download the AcImageHover18.txt file, right click, unblock, remove the .TXT file extension leaving the file as a .DLL, then NETLOAD the resultant assembly, and use the newly added IMAGEHOVERON, or IMAGEHOVEROFF Commands to test. ** Note - This assembly was compiled using .NET 3.5, and tested successfully using Civil 3D 2011, 2012. Cheers! AcImageHover18.dll.txt Edited October 12, 2012 by BlackBox Screenshot attached Quote
BlackBox Posted October 10, 2012 Posted October 10, 2012 I've update my previous post to include an assembly build which also displays some RasterImage-specific Property information, rather than simply the Layer property value in the ToolTip. Quote
ReMark Posted October 10, 2012 Posted October 10, 2012 I'd like to acknowledge your contributions to this thread despite the lack of responses. Thank you RenderMan. Quote
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.