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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Setting ThingworxPropertyDefinition and ThingworxEventDefinition dynamically in .NET SDK

randomName
4-Participant

Setting ThingworxPropertyDefinition and ThingworxEventDefinition dynamically in .NET SDK

Is it possible to set following fields dynamically in .NET SDK:

[ThingworxPropertyDefinition(name = "Temperature", description = "Current Temperature", baseType = "NUMBER", category = "Status", aspects = new string[] { "isReadOnly:false" })]
[ThingworxEventDefinition(name = "SteamSensorFault", description = "Steam sensor fault", dataShape = "SteamSensor.Fault", category = "Faults", isInvocable = true, isPropertyEvent = false)]

Data fields I have are dynamic and are loaded from config file so it is not practical to use static statements. Does anyone know if these settings can be implemented to class constructor? I have read through the documentation but haven't been able create working implementation.

0 REPLIES 0
Announcements


Top Tags