1 Pages (4 items)
Tutorials about how to create a plug-in - C#, VB.NET, Visual Basic, Visual Studio - Messages
#1 Posted: 12/23/2016 2:51:48 PM
Hello developers,
I have updated the guides about how to create a plug-in in SMath Studio to be compatible with the latest APIs.
Please report any issue so we can keep them updated
a copy of both the tutorials and the code of the plug-ins is available in our SVN.
I have updated the guides about how to create a plug-in in SMath Studio to be compatible with the latest APIs.
Please report any issue so we can keep them updated

- C#
][pdf] (not updated) download either from extension page or Extensions Manager (Tools > Plugins... > Handbooks > Online Gallery)
[sm] Writing your first plug-in for SMath Studio Desktop in C# [rev.3].sm (909 KiB) downloaded 75 time(s). - VB.NET
[pdf] (not updated) download either from extension page or Extensions Manager (Tools > Plugins... > Handbooks > Online Gallery)
[sm] Writing your first plug-in for SMath Studio Desktop in VB.NET [rev.3].sm (1 MiB) downloaded 69 time(s).
a copy of both the tutorials and the code of the plug-ins is available in our SVN.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
4 users liked this post
Вячеслав Мезенцев 12/23/2016 3:53:00 PM, NDTM Amarasekera 12/23/2016 9:35:00 PM, frapuano 12/24/2016 6:22:00 AM, Alexander O. Melnik 12/28/2016 10:12:00 AM
#2 Posted: 1/12/2018 1:10:56 PM
Davide,
Some minor issues for the vb.net walkthrough; your tutorial was directing us to look for TryEvaluateExpression(value As Entry, context as store, result as entry) as boolean, but I was coming up with (4) parameters instead of just the (3) you indicated, in addition to a different function name:
For the purposes of the tutorial, looks like the term 'root as term' replaces the variable 'value as entry'. Nothing serious, but it a curve ball never the less.
Thank you for the walkthrough, good resource; gave a great starting point and provided me with a few insights of Visual Studio I was not aware of.
-Kenny
Some minor issues for the vb.net walkthrough; your tutorial was directing us to look for TryEvaluateExpression(value As Entry, context as store, result as entry) as boolean, but I was coming up with (4) parameters instead of just the (3) you indicated, in addition to a different function name:
Public Function ExpressionEvaluation(root As Term, args As Term()(), ByRef context As Store, ByRef result() As Term) As Boolean Implements IPluginLowLevelEvaluation.ExpressionEvaluation
'Throw New NotImplementedException()
End Function
For the purposes of the tutorial, looks like the term 'root as term' replaces the variable 'value as entry'. Nothing serious, but it a curve ball never the less.
Thank you for the walkthrough, good resource; gave a great starting point and provided me with a few insights of Visual Studio I was not aware of.
-Kenny
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#3 Posted: 1/12/2018 10:06:10 PM
Hello Kenny,
Glad that you liked it, I've started from this tutorial too (the very first version made by Andrey several years ago)
this is because you have implemented another interface, IPluginLowLevelEvaluation instead of IPluginLowLevelEvaluationFast; I've documented the latter only because that's the most new, the one you found one day probably will be removed.
However there were some other changes in the APIs (SessionProfile), so here we have the updated tutorials
TUTORIALS UPDATED
- API changes;
- msbuild fast deploy (thanks to Martin Kraska for the idea);
- minor fixes;
Glad that you liked it, I've started from this tutorial too (the very first version made by Andrey several years ago)

Wrotebut I was coming up with (4) parameters instead of just the (3) you indicated, in addition to a different function name
this is because you have implemented another interface, IPluginLowLevelEvaluation instead of IPluginLowLevelEvaluationFast; I've documented the latter only because that's the most new, the one you found one day probably will be removed.
However there were some other changes in the APIs (SessionProfile), so here we have the updated tutorials

TUTORIALS UPDATED
- API changes;
- msbuild fast deploy (thanks to Martin Kraska for the idea);
- minor fixes;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Posted: 8/8/2024 7:14:03 PM
UPDATED
- API changes;
- API changes;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
⚜ Kenny Lemens, P.E. ᵂᴵ 8/8/2024 8:57:00 PM
1 Pages (4 items)
-
New Posts
-
No New Posts