1 страниц (4 вхождений)
API - Entry.Create() with unit - Сообщения
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

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 страниц (4 вхождений)
-
Новые сообщения
-
Нет новых сообщений