cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Usage of VEC2, VEC3 & VEC4 in C-SDK

Chrischhan
12-Amethyst

Usage of VEC2, VEC3 & VEC4 in C-SDK

Is there a way to use the BaseTypes VEC[X] in the C-SDK?

I did not found any information in the HelpCenter (https://support.ptc.com/help/thingworx/edge_sdk_c/en/) to use the Basetypes.

 

The only information i found is 4 Jears old (https://community.ptc.com/t5/ThingWorx-Developers/widget-for-3d-coordinates-input/m-p/502598) that states that the Datatypes are only for Vuforia.

I also didn't find any Informations about it in the TWX HC besides the Datatypes  (https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/Things/ThingProperties/ThingProperties.html)

 

So is there a way to use VEC Based Properties in the SDK or is it better to Switch to IT?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi  @Chrischhan ,

 

The VEC2, VEC3 & VEC4 primitives are not part of the AlwaysOn protocol (and thus not available in the C SDK).

You can maybe use a LOCATION instead of VEC3, otherwise a generic InfoTable that you will have to transform into VEC on the platform.

 

 

View solution in original post

3 REPLIES 3

Hi  @Chrischhan ,

 

The VEC2, VEC3 & VEC4 primitives are not part of the AlwaysOn protocol (and thus not available in the C SDK).

You can maybe use a LOCATION instead of VEC3, otherwise a generic InfoTable that you will have to transform into VEC on the platform.

 

 

wcui
14-Alexandrite
(To:Chrischhan)

Hi Chrischhan

 

There are description about VEC data type on Thingworx 9 Help center, please check the bottom part of below link.

 

For your question about C SDK, per below link, I am afraid currently C SDK does not support VEC data type.
http://support.ptc.com/help/thingworx/edge_sdk_c/en/index.html#page/c_sdk%2Fc_csdk_base_types.html%23wwID0ECEDO

 

Is it possible to let C DSK transfer supported type of data to ThingWorx(TW), then convert data to VEC values on TW side?

slangley
23-Emerald II
(To:Chrischhan)

Hi @Chrischhan.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags