Is there any way to change the operation of the default "View" buttons?

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
LittleXC
Posts: 3
Joined: Mon Jul 26, 2021 7:51 pm

Is there any way to change the operation of the default "View" buttons?

Post by LittleXC » Mon Jul 26, 2021 8:09 pm

Hello!

I have worked with the SDK for a while in order to support my little application. I just followed the quick guide to make the SpaceMouse Enterprise work.

OK, it works. Commands and icon added, no problem in navigation, custom Key binding works, but I can't change the default View Command Set Operation provided by 3DxWare itself. For example, when pressing "Top View" Button(whose long press operation is "Bottom View"), AutoCad will use its View Command to change the direction of view instead of the original 3DxWare continuous matrix putting back animation.

I tried to Read the property commands_tree_k after read the navlib.pdf and navlib.h, but the value returned was invalid. Is there anything that I missed or just can't change operations in the default View Command Set by SDK?

ngomes
Moderator
Moderator
Posts: 2663
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Is there any way to change the operation of the default "View" buttons?

Post by ngomes » Tue Jul 27, 2021 11:14 am

Hi LittleXC,
LittleXC wrote:
Mon Jul 26, 2021 8:09 pm
OK, it works. Commands and icon added, no problem in navigation, custom Key binding works, but I can't change the default View Command Set Operation provided by 3DxWare itself. For example, when pressing "Top View" Button(whose long press operation is "Bottom View"), AutoCad will use its View Command to change the direction of view instead of the original 3DxWare continuous matrix putting back animation.
Not sure I follow.

If you're using the latest SDK, the driver will take care of changing view for whatever button is pressed. This behaviour aims to be forward-compatible with future device types.

What are you trying to achieve in your program? The AutoCAD example does not apply since it used the old SDK (now deprecated).
Nuno Gomes

LittleXC
Posts: 3
Joined: Mon Jul 26, 2021 7:51 pm

Re: Is there any way to change the operation of the default "View" buttons?

Post by LittleXC » Mon Aug 02, 2021 2:48 am

ngomes wrote:
Tue Jul 27, 2021 11:14 am
Hi LittleXC, Not sure I follow.

If you're using the latest SDK, the driver will take care of changing view for whatever button is pressed. This behaviour aims to be forward-compatible with future device types.

What are you trying to achieve in your program? The AutoCAD example does not apply since it used the old SDK (now deprecated).
Oh, So AutoCad's arx is using the old SDK's behavior? After I press the button like "Top View", AutoCAD still can turn but it's not the latest SDK's behavior?

I want to change the operation of the predefined six view orientation commands, for example not to do the Driver's operation which will change the matrix as what the Big Navigation Cap will trigger in program. Just execute a command or function to instantly change to the View I choose.
So is it better to just set key binding of that operation I want after I add it into the Driver's CommandSet?

ngomes
Moderator
Moderator
Posts: 2663
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Is there any way to change the operation of the default "View" buttons?

Post by ngomes » Mon Aug 02, 2021 6:12 am

LittleXC wrote:
Mon Aug 02, 2021 2:48 am
I want to change the operation of the predefined six view orientation commands, for example not to do the Driver's operation which will change the matrix as what the Big Navigation Cap will trigger in program.
Have you exported the functions that you want to assigned to the view button? If so, users can assign one of these to the view button.

A client program cannot change the default driver assignments. The defaults are defined in the driver configuration.

LittleXC
Posts: 3
Joined: Mon Jul 26, 2021 7:51 pm

Re: Is there any way to change the operation of the default "View" buttons?

Post by LittleXC » Mon Aug 02, 2021 7:36 pm

ngomes wrote:
Mon Aug 02, 2021 6:12 am
Have you exported the functions that you want to assigned to the view button? If so, users can assign one of these to the view button.

A client program cannot change the default driver assignments. The defaults are defined in the driver configuration.
Sure I did! Thank you for your help!

ngomes
Moderator
Moderator
Posts: 2663
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Is there any way to change the operation of the default "View" buttons?

Post by ngomes » Tue Aug 03, 2021 11:09 am

LittleXC wrote:
Mon Aug 02, 2021 7:36 pm
Thank you for your help!
You're sure it was helpful? I may have misunderstood what you were asking for.

Post Reply