1 Pages (4 items)
API - Entry.Create() with unit - Messages
#1 Posted: 3/22/2017 11:51:14 AM
Hi,
I am beginning my yourney into SMath API. My current bigest problem is how to add a unit to custom function return value.
I am using IPluginLowLevelEvaluationFast interface and in my TryEvaluateExpression implementation I am returning some double value by: result = Entry.Create(TermsConverter.ToTerms(sampleDistance.ToString()));
It works ok, but the question is: how to add unit to result of TryEvaluateExpression, for example standard length measuer - meters ?
Can it be dony by Terms of result of function TermInfo?
Any help will be apreciated
I am beginning my yourney into SMath API. My current bigest problem is how to add a unit to custom function return value.
I am using IPluginLowLevelEvaluationFast interface and in my TryEvaluateExpression implementation I am returning some double value by: result = Entry.Create(TermsConverter.ToTerms(sampleDistance.ToString()));
It works ok, but the question is: how to add unit to result of TryEvaluateExpression, for example standard length measuer - meters ?
Can it be dony by Terms of result of function TermInfo?
Any help will be apreciated
#2 Posted: 3/22/2017 12:33:09 PM
Hello Gregi,
Could you please post your smath-file or at least a screenshot, so i can understand your question better?
Regards, csb
Could you please post your smath-file or at least a screenshot, so i can understand your question better?
Regards, csb
1 Pages (4 items)
- New Posts
- No New Posts
![2017-03-22 21-00-51 SMath Studio - [List1.sm ].png](/en-US/files/Download/H5w6Ua/2017-03-22-21-00-51-SMath-Studio---[List1.sm-].png)