ObjectARX

Reply
Active Contributor
loic.jourdan
Posts: 49
Registered: ‎01-24-2006
Message 1 of 5 (367 Views)
Accepted Solution

AcEdViewCube-like drawable

367 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
Active Contributor
kapil_CCTech
Posts: 39
Registered: ‎06-07-2012
Message 2 of 5 (216 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: 667
Registered: ‎03-21-2011
Message 3 of 5 (197 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

Active Contributor
loic.jourdan
Posts: 49
Registered: ‎01-24-2006
Message 4 of 5 (193 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: 25
Registered: ‎01-17-2005
Message 5 of 5 (162 Views)

Re: AcEdViewCube-like drawable

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community