Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

like this?

test.JPG

image above from architecture 2010

Posted

Yes Dan's

 

I am looking for the same.

 

 

Thanks & Regards,

Kumar.

Posted

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.

Posted

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.

Posted

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.

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...