ObjectARX

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

AcEdViewCube-like drawable

348 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
Posts: 39
Registered: ‎06-07-2012
Message 2 of 5 (197 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: 611
Registered: ‎03-21-2011
Message 3 of 5 (178 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: 47
Registered: ‎01-24-2006
Message 4 of 5 (174 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 (143 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 interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

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

Ask the Community