Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Davide Carpi  
#1 Posted : 23 December 2016 20:51:48(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,928
Man
Italy
Location: Italy

Was thanked: 972 time(s) in 647 post(s)
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 Wink



a copy of both the tutorials and the code of the plug-ins is available in our SVN.

Edited by user 13 January 2018 19:55:26(UTC)  | Reason: link to the extensions page

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
thanks 4 users thanked Davide Carpi for this useful post.
on 23/12/2016(UTC),  on 24/12/2016(UTC),  on 24/12/2016(UTC),  on 28/12/2016(UTC)
Offline Kenn L  
#2 Posted : 12 January 2018 19:10:56(UTC)
Kenn L

Rank: Newbie

Groups: Registered
Joined: 11/01/2018(UTC)
Posts: 3
United States
Location: Wisconsin

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:
Code:

   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

Offline Davide Carpi  
#3 Posted : 13 January 2018 04:06:10(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 1,928
Man
Italy
Location: Italy

Was thanked: 972 time(s) in 647 post(s)
Hello Kenny,

Glad that you liked it, I've started from this tutorial too (the very first version made by Andrey several years ago) Good

Originally Posted by: Kenn L Go to Quoted Post
but 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 Good


TUTORIALS UPDATED
- API changes;
- msbuild fast deploy (thanks to Martin Kraska for the idea);
- minor fixes;

Edited by user 13 January 2018 16:55:44(UTC)  | Reason: Not specified

Best regards,

Davide

---
If you like my plugins please consider making a donation to SMath Studio
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.