ObjectARX

Reply
Valued Contributor
loic.jourdan
Posts: 53
Registered: ‎01-24-2006
Message 1 of 5 (384 Views)
Accepted Solution

AcEdViewCube-like drawable

384 Views, 4 Replies
10-29-2010 10:30 AM

Hi,

I'd like to create a custom drawable that behaves as the AcEdViewCube:

 - no z-buffer display (solved)

 - clickable

I've created a custom drawable class displayed using AcGiTransientManager; this solved the first point (no z-buffer); but I have no idea on how capture click event as AcEdViewCube does; I suppose I can get a 'mousemove' equivalent by implementing an input poin monitor but I have no idea on how to capture a click.

 

Thank you

loic

----
20-20 CAD / 20-20 Technologies

Hi loic,

 

The transient graphics does not allow selection.

 

A possible way to do this could be to use acedRegisterFilterWinMsg to install a callback and then process the message as required. This blog post uses this method although for a little different purpose (to handle key press)

http://adndevblog.typepad.com/autocad/2012/06/how-to-react-to-the-cursor-keys-properly-without-affecting-autocad-using-objectarx.html

Active Contributor
kapil_CCTech
Posts: 39
Registered: ‎06-07-2012
Message 2 of 5 (233 Views)

Re: AcEdViewCube-like drawable

07-02-2012 11:34 PM in reply to: loic.jourdan

please can yu help me with sample code to create ViewCube in C++

ADN Support Specialist
Balaji_Ram
Posts: 749
Registered: ‎03-21-2011
Message 3 of 5 (214 Views)

Re: AcEdViewCube-like drawable

07-25-2012 05:42 AM in reply to: loic.jourdan

Hi loic,

 

The transient graphics does not allow selection.

 

A possible way to do this could be to use acedRegisterFilterWinMsg to install a callback and then process the message as required. This blog post uses this method although for a little different purpose (to handle key press)

http://adndevblog.typepad.com/autocad/2012/06/how-to-react-to-the-cursor-keys-properly-without-affec...



Balaji
Developer Technical Services
Autodesk Developer Network

Valued Contributor
loic.jourdan
Posts: 53
Registered: ‎01-24-2006
Message 4 of 5 (210 Views)

Re: AcEdViewCube-like drawable

07-25-2012 06:11 AM in reply to: Balaji_Ram

Thank you very much, not as straightforward as I hoped but well enought!

----
20-20 CAD / 20-20 Technologies
Employee
kean.walmsley
Posts: 27
Registered: ‎01-17-2005
Message 5 of 5 (179 Views)

Re: AcEdViewCube-like drawable

09-06-2012 09:17 AM in reply to: loic.jourdan
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.