.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Periscope in .NET

15 REPLIES 15
Reply
Message 1 of 16
wesbird
631 Views, 15 Replies

Periscope in .NET

HI,
like in Periscope , can I create a tooltip when mouse hove over a AutoCAD object? if yes, how? is there any example? even in ObjectARX would help.


Thank you very much

Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
15 REPLIES 15
Message 2 of 16
Anonymous
in reply to: wesbird

Hi Wes,

Interesting question, i could functionality for this as well. Did you ever
get an answer to your question, or created working code for it yourself? I'm
very excited if you do.

Thanks
Henk


schreef in bericht news:5157541@discussion.autodesk.com...
HI,
like in Periscope , can I create a tooltip when mouse hove over a AutoCAD
object? if yes, how? is there any example? even in ObjectARX would help.


Thank you very much

Wes
Message 3 of 16
wesbird
in reply to: wesbird

Check PointMonitor and PointMonitorEventArgs class in Managed Class Reference
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
Message 4 of 16
Anonymous
in reply to: wesbird

He, you're fast 🙂

Thanks, I will look at this


schreef in bericht news:5237197@discussion.autodesk.com...
Check PointMonitor and PointMonitorEventArgs class in Managed Class
Reference
Message 5 of 16
smcclure
in reply to: wesbird

Is there an alternative class for AutoCAD 2005? Unfortunately, many of the event classes such as PointMonitor do not exist....
Message 6 of 16
Anonymous
in reply to: wesbird

There is a sample in the ARX skd to do it in C++
ObjectARX\samples\entity\MultilineTooltipSamp

wrote in message news:5237402@discussion.autodesk.com...
Is there an alternative class for AutoCAD 2005? Unfortunately, many of the
event classes such as PointMonitor do not exist....
Message 7 of 16
Mikko
in reply to: wesbird

I saw a C# example somewhere but can't find it at the moment. Here is a VB example.

Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

Public Class Class1

Public Event PointMonitorEventHandler(ByVal WhatIsIt)

<CommandMethod("What")> _
Public Sub What()
AddHandler Application.DocumentManager.MdiActiveDocument.Editor.PointMonitor, New Autodesk.AutoCAD.EditorInput.PointMonitorEventHandler(AddressOf WhatIsIt)
End Sub

Private Sub WhatIsIt(ByVal sender As Object, ByVal e As Autodesk.AutoCAD.EditorInput.PointMonitorEventArgs)
Dim ePaths() As FullSubentityPath = e.Context.GetPickedEntities()
If ePaths.Length > 0 Then
Dim ePath As FullSubentityPath = ePaths(0)
Dim db As Database = HostApplicationServices.WorkingDatabase
Dim t As Transaction = db.TransactionManager.StartTransaction()
Try
Dim ent As Entity = CType(t.GetObject(ePath.GetObjectIds()(0), OpenMode.ForRead), Entity)
e.AppendToolTipText("I am an " + ent.GetType().ToString())
Finally
t.Dispose()
End Try
End If
End Sub

End Class
Message 8 of 16
Anonymous
in reply to: wesbird

Same in c#. But he needs this for 2005 and as I understand native ARX is the
only
option.
wrote in message news:5244449@discussion.autodesk.com...
I saw a C# example somewhere but can't find it at the moment. Here is a VB
example.

Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices

Public Class Class1

Public Event PointMonitorEventHandler(ByVal WhatIsIt)

<CommandMethod("What")> _
Public Sub What()
AddHandler
Application.DocumentManager.MdiActiveDocument.Editor.PointMonitor, New
Autodesk.AutoCAD.EditorInput.PointMonitorEventHandler(AddressOf WhatIsIt)
End Sub

Private Sub WhatIsIt(ByVal sender As Object, ByVal e As
Autodesk.AutoCAD.EditorInput.PointMonitorEventArgs)
Dim ePaths() As FullSubentityPath = e.Context.GetPickedEntities()
If ePaths.Length > 0 Then
Dim ePath As FullSubentityPath = ePaths(0)
Dim db As Database = HostApplicationServices.WorkingDatabase
Dim t As Transaction = db.TransactionManager.StartTransaction()
Try
Dim ent As Entity = CType(t.GetObject(ePath.GetObjectIds()(0),
OpenMode.ForRead), Entity)
e.AppendToolTipText("I am an " + ent.GetType().ToString())
Finally
t.Dispose()
End Try
End If
End Sub

End Class
Message 9 of 16
Anonymous
in reply to: wesbird

"Paul Richardson" wrote

>> Same in c#. But he needs this for 2005 and as I
>> understand native ARX is the only option.

The only option for tooltips ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
Message 10 of 16
Anonymous
in reply to: wesbird

I didn't think you could monitor the cursor in 05
with managed ARX? Or did I misunderstand what
he was looking for all together.

"Tony Tanzillo" wrote in message
news:5244644@discussion.autodesk.com...
"Paul Richardson" wrote

>> Same in c#. But he needs this for 2005 and as I
>> understand native ARX is the only option.

The only option for tooltips ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
Message 11 of 16
smcclure
in reply to: wesbird

There are two seperate questions here... First, there was a question about the PointMonitor in general... I responded with a second question about implementing the PointMonitor in ACAD2005, since it seems like the upgrade will probably take a little while here.

On a side note (although somewhat related), the .NET wrapper for the pointmanager should be basically the same between 2005 and 2006... Is the wrapper open source or would it be possible to recompile only the PointMonitor portion for 2005?
Message 12 of 16
Anonymous
in reply to: wesbird

After looking at the 2005 managed API, yes you're
right.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Paul Richardson" wrote in message news:5244663@discussion.autodesk.com...
I didn't think you could monitor the cursor in 05
with managed ARX? Or did I misunderstand what
he was looking for all together.

"Tony Tanzillo" wrote in message
news:5244644@discussion.autodesk.com...
"Paul Richardson" wrote

>> Same in c#. But he needs this for 2005 and as I
>> understand native ARX is the only option.

The only option for tooltips ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
Message 13 of 16
Anonymous
in reply to: wesbird

Paul's correct. There is no PointMonitor class in 2005's API.

No, you can't recompile it because there is no source
and it isn't nearly that simple (lot of dependence on
other APIs that are not in 2005 either).

I've said this before and I'll say it again. If you're serious
about .NET development, you need to upgrade to 2006.
Otherwise, you're not going to find much sympathy here
on how to get the benefits of the latter without ugrading.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5244715@discussion.autodesk.com...
There are two seperate questions here... First, there was a question about the PointMonitor in general... I responded with a second question about implementing the PointMonitor in ACAD2005, since it seems like the upgrade will probably take a little while here.

On a side note (although somewhat related), the .NET wrapper for the pointmanager should be basically the same between 2005 and 2006... Is the wrapper open source or would it be possible to recompile only the PointMonitor portion for 2005?
Message 14 of 16
Anonymous
in reply to: wesbird

Since I was using the info you gave me, technically you're correct...;)
"Tony Tanzillo" wrote in message
news:5244714@discussion.autodesk.com...
After looking at the 2005 managed API, yes you're
right.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Paul Richardson" wrote in message
news:5244663@discussion.autodesk.com...
I didn't think you could monitor the cursor in 05
with managed ARX? Or did I misunderstand what
he was looking for all together.

"Tony Tanzillo" wrote in message
news:5244644@discussion.autodesk.com...
"Paul Richardson" wrote

>> Same in c#. But he needs this for 2005 and as I
>> understand native ARX is the only option.

The only option for tooltips ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
Message 15 of 16
Anonymous
in reply to: wesbird

At this juncture, with having done relatively little
work with the 2005 API, it's hard to remember what
is and is not there 🙂

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Paul Richardson" wrote in message news:5244764@discussion.autodesk.com...
Since I was using the info you gave me, technically you're correct...;)
"Tony Tanzillo" wrote in message
news:5244714@discussion.autodesk.com...
After looking at the 2005 managed API, yes you're
right.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

"Paul Richardson" wrote in message
news:5244663@discussion.autodesk.com...
I didn't think you could monitor the cursor in 05
with managed ARX? Or did I misunderstand what
he was looking for all together.

"Tony Tanzillo" wrote in message
news:5244644@discussion.autodesk.com...
"Paul Richardson" wrote

>> Same in c#. But he needs this for 2005 and as I
>> understand native ARX is the only option.

The only option for tooltips ?


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
Message 16 of 16
Anonymous
in reply to: wesbird


Pointing you to this sample was meant to
highlight '
title="AcEdInputPointMonitor Class">AcEdInputPointMonitor'.
The


title="AcEdInputPointMonitor Class">tooltip part is just a
bonus.


size=2>
 

"Paul Richardson" <prichardsonATadelphia.net>
wrote in message

face=Arial size=2>news:5237453@discussion.autodesk.com

face=Arial size=2>...
There is a sample in
the ARX skd to do it in
C++
ObjectARX\samples\entity\MultilineTooltipSamp

<smcclure>
wrote in message

face=Arial size=2>news:5237402@discussion.autodesk.com

face=Arial size=2>...
Is there an alternative class for AutoCAD 2005?
Unfortunately, many of the
event classes such as PointMonitor do not
exist....

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost