giskumar Posted November 22, 2010 Posted November 22, 2010 Hi all, I am new to reactors. I would like to impliment a function using reactors. My aim is to display one of xdata field as help text when mouse over that object. Is it possible with reactors. If it is possible, then please provide some guide lines how to do this. Thanks, Kumar. Quote
irneb Posted November 22, 2010 Posted November 22, 2010 Not straight with normal ALisp / VLisp. You'll need something "extra" to be able to display those pop-up notes. Unfortunately your 1st big stumbling block's going to be that there's no Mouse Moved reactor, only button clicked. Then you'll need something other than the normal lisp display functions to show the note. In this case I think you'll be better off going to DotNet or even ARX. Quote
giskumar Posted November 22, 2010 Author Posted November 22, 2010 Thanks for the reply.......... Quote
Guest kruuger Posted November 22, 2010 Posted November 22, 2010 maybe you want use something like this: http://kojacek.republika.pl/object_comm.html Komentarz obiektu [Dodaj/Usuń/Pokaż] : -> Object comments [Add/Delete/Show] : Wskaż obiekt: -> Select object: kruuger Quote
giskumar Posted November 22, 2010 Author Posted November 22, 2010 Hi kruuger, I dont want to label all feacilities. I just want to see the information of x data when my mouse over that particular object. It just like a mouse tip. Thanks, Kumar. Quote
Lt Dan's legs Posted November 22, 2010 Posted November 22, 2010 like this? image above from architecture 2010 Quote
Lee Mac Posted November 22, 2010 Posted November 22, 2010 Something similar to this? http://www.theswamp.org/index.php?topic=33078.0 Quote
giskumar Posted November 23, 2010 Author Posted November 23, 2010 Yes Dan's I am looking for the same. Thanks & Regards, Kumar. Quote
irneb Posted November 23, 2010 Posted November 23, 2010 Yep, Lee's link shows how to do something like this without reactors - using the grread function in a loop. Unfortunately you can't do anything else while this is happening - so it's more like an inspection tool which you turn on, excluding any other commands. To have the example as Lt Dan's shown - that's not possible by using Lisp only. That's why I suggested DotNet / ARX instead - at least there you have such things as mouse moved events. Quote
irneb Posted November 23, 2010 Posted November 23, 2010 As a sample, you could look at the ObjectARX library. After you've downloaded & extracted it, you should have a folder structure - open the following file in Visual C++ Express: C:\ObjectARX 2011\samples\reactors\inputpoint\inputpoint.vcproj Press F7 (or Build --> Build Solution). Then open AutoCAD, type AppLoad and browse and load: C:\ObjectARX 2011\samples\reactors\inputpoint\Debug\InputPoint.arx Close AppLoad and type AddMon at the command prompt. Move the cursor about some, click and drag ... see the differences in the points shown on the command-line. Type RemMon to stop it. From that point you could determine which entity is under the cursor. That "sorts-out" the 1st portion of your requirement. Now to display some information: If you've also downloaded the ObjectARX documentation, you can open the ArxDoc.CHM file as it's a help file (just double click on it). Then go to the search tab & type CAdUiTextTip, click List Topics, double click on CAdUiTextTip Class and you'll see the help on this class. Notice it's derived from CAdUiTipWindow. Quote
irneb Posted November 23, 2010 Posted November 23, 2010 Another option is using DotNet's Events - in the same folders as the ObjectARX open the sample: C:\ObjectARX 2011\samples\dotNet\EventsWatcher\EventsWatcher.csproj There's some instructions for use in the ReadMe.TXT file in the same folder. Note you'll need C# Express to compile this. However I'm unsure about how to display an unbound tooltip through DotNet. 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.