PDA

View Full Version : Line Highlight



spencer.67965
2004-08-06, 02:19 PM
Hi all,

Don't know if this is possible. If anyone has any thoughts on the matter please let me know.

While running a VBA Program I want to have a line highlight (or change props) when my cursor is over it and revert back to a continuous line when the cursor is not on the line. See Picture below.


http://www.invisioninc.net/dtdrafting/question1.wmf



After picking one of the four lines I will then erase the other three lines giving me the following. See Picture below.



http://www.invisioninc.net/dtdrafting/question1b.wmf



Thanks in advance for your help,



Spencer



______________________



AutoCAD 2005

Coolmo
2004-08-06, 02:25 PM
How is highlighting the first line linked to erasing the other three lines? Is the highlighted line the one you're telling VBA to keep? In that case, are the other three lines added to a selection set at any other time?

spencer.67965
2004-08-06, 02:48 PM
Yes the highlighted line is the one I will keep; the other three lines will then be removed from the selection set. More than anything highlighting the lines with the cursor over will indicate to the user that that particular line can be selected. When one of the four lines is selected by a mouse click I will keep the selected line and delete the other three lines, or at least this is the plan. I am open to any suggestions.



Thanks,



Spencer

Coolmo
2004-08-06, 02:59 PM
Are you using the "highlighting" method as a selection method whereas the user doesn't have to actually select the object or are you trying to just highlight an object as the cursor moves over it? If selecting, why wouldn't another selection set be the alternative where the selected objects being added are already highlighted? I guess I'm trying to figure out what the intent of the cursor highlight is to get a better feel for what you're trying to do.

spencer.67965
2004-08-06, 03:50 PM
First off thanks for taking the time to entertain my question.

Here is the a brief description of the project I am working on so you have an idea of what I am trying to accomplish. I work for a structural engineer, we mainly do light frame resdential construction. I make the structural mark changes for the designers/architects who supply us with the Cad files. I have found it taking too much time noting the post callouts.
Here is an example of what I we usually do for post callouts. http://www.invisioninc.net/dtdrafting/question1c.wmf

However I often change the direction depending on readability; therfore, I want to be able to choose the direction of the call out in realtime.

Are you trying to just highlight an object as the cursor moves over it? YES (This will help the user identify the correct callout direction.)

I will select the line manually which will in turn place the text in the correct orientation and erase the other three lines.

Hope this helped.

Spencer