.NET SDK

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

Moderator: Moderators

Post Reply
JackMar
Posts: 4
Joined: Tue Jul 20, 2021 10:14 am

.NET SDK

Post by JackMar »

Is there a simpler example of how to use SpaceMouse with C# managed application? The example given in SDK is several thousand lines long and not very clear how the information is read from the device. I got lost trying to read the code. It is also tailored toward rotation of 3D objects. It does not give a clue how to use SpaceMouse signal for some other interaction not necessarily related to 3D world. Is there any way to get an C# event from the device when user interacts with it? The event would have encoded in which direction of shift / rotation user requested and what is the magnitude? Simple code. Just a SpaceMouse device class with event reporting user interaction.

I also have issue with help files included in the SDK. Those are compiled ".chm" files and somehow on multiple computers with Windows 10 they open only topic titles, but topic content remains completely empty. Is there a bug in those files? All of them are like that.
ngomes
Moderator
Moderator
Posts: 3318
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: .NET SDK

Post by ngomes »

JackMar wrote: Tue Jul 20, 2021 10:26 am Just a SpaceMouse device class with event reporting user interaction.
We have shifted away from that paradigm. Basically, it was easy to get the raw device data but then very difficult to complete an implementation with a consistent (and usable) user experience.

If you're looking for the old SDK (easy access to raw data), see this post.
I also have issue with help files included in the SDK. Those are compiled ".chm" files and somehow on multiple computers with Windows 10 they open only topic titles, but topic content remains completely empty. Is there a bug in those files? All of them are like that.
What SDK package are you looking at? I just opened the doc/Documentation.chm in the package of SDK v. 4.0.2 on a development machine (Windows 10 x64 version 20H2) and all seems well (see below screenshot).


screenshot.png
screenshot.png (54.16 KiB) Viewed 27389 times
JackMar
Posts: 4
Joined: Tue Jul 20, 2021 10:14 am

Re: .NET SDK

Post by JackMar »

This is puzzling. I'm using latest downloaded SDK 4.0.2. Just downloaded it again (.zip file 3DxWare_SDK_v4-0-2_r17624.zip).
After unzipping i went to V:\Temp\samples\3DxTestNL\Documentation.chm
It opens topic titles but not topic content - see attached screenshot. Tried on three different computers all latest Windows 10.
The one I'm writing is Microsoft Windows [Version 10.0.18363.1646]. Attached is screenshot of what I'm getting. No matter what topic I choose, the effect is the same. Also other ".chm" files from the sdk have the same effect. ".chm" files from other programs open with no issues on the same machines. Here is an example just now on this machine. I opened one of the Microsoft Windows ".chm" files found in C:\Windows\... folders. Attached second screenshot shows no issue.
Attachments
Screenshot 2021-07-20 140919.png
Screenshot 2021-07-20 140919.png (37.99 KiB) Viewed 27377 times
Screenshot 2021-07-20 141809.png
Screenshot 2021-07-20 141809.png (68.41 KiB) Viewed 27377 times
JackMar
Posts: 4
Joined: Tue Jul 20, 2021 10:14 am

Re: .NET SDK

Post by JackMar »

I'm using latest SDK. I tried 3 computers, all latest Windows 10. This third one just downloaded SDK again: 3DxWare_SDK_v4-0-2_r17624.zip
The computer windows version is Microsoft Windows [Version 10.0.18363.1646]
Screenshot 2021-07-20 142721.png
Screenshot 2021-07-20 142721.png (7.25 KiB) Viewed 27377 times
Any ".chm" file in the SDK displays only topic title but not content, for example :
Screenshot 2021-07-20 140919.png
Screenshot 2021-07-20 140919.png (37.99 KiB) Viewed 27377 times
On the same computer ".chm" files from other applications have no issue opening:
Screenshot 2021-07-20 141809.png
Screenshot 2021-07-20 141809.png (68.41 KiB) Viewed 27377 times
Without those help files I find it very difficult to understand SDK managed example.
ngomes
Moderator
Moderator
Posts: 3318
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: .NET SDK

Post by ngomes »

All looks fine from our end. The samples\3DxTestNL\Documentation.chm file is 625,639 bytes in size with the SHA-1 hash 27c0cd205f5205981708b7c477dcf8886d29e109 and MD5 of fc00d6b49b784d9cf3588b52f54388f1.

Check if the CHM is being blocked by your system: right-click the file > Properties > "General" tab and tick the "Unblock" check box if present.
JackMar
Posts: 4
Joined: Tue Jul 20, 2021 10:14 am

Re: .NET SDK

Post by JackMar »

Well, the file matches. The size is 625639 and MD5 code is fc00d6b49b784d9cf3588b52f54388f1. This is the same you posted but this file on three different computers does not show any topic content (nor any other ".chm" file from the SDK for that matter). I tried it to open on my work issued laptop with Windows 10 Enterprise, personal laptop with Windows 10 Pro and personal desktop with Windows 10 Pro to no effect. Each one has its own separate Windows installation not related to each other.
Screenshot 2021-07-21 063420.png
Screenshot 2021-07-21 063420.png (35.65 KiB) Viewed 27369 times
Screenshot 2021-07-21 063932.png
Screenshot 2021-07-21 063932.png (11.27 KiB) Viewed 27369 times
I have full control of the file:
Screenshot 2021-07-21 064206.png
Screenshot 2021-07-21 064206.png (29.07 KiB) Viewed 27369 times
The file is not compressed or encrypted. Only archive and allowing for content indexed attributes are set.
This issue only exists for all ".chm" files from the SDK. Any other ".chm" file that I can find on the three computers opens with no issues.
ngomes
Moderator
Moderator
Posts: 3318
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: .NET SDK

Post by ngomes »

JackMar wrote: Wed Jul 21, 2021 3:47 am This issue only exists for all ".chm" files from the SDK. Any other ".chm" file that I can find on the three computers opens with no issues.
Your system is identifying the file as sourced from a non-secured location or placed in a restricted directory or something.

The files are fine. There's something on your computer blocking access.
ngomes
Moderator
Moderator
Posts: 3318
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: .NET SDK

Post by ngomes »

Also, refer to this article on Stack Overflow.
Post Reply