Hi, Benedict,

We’re using a third approach when embedding IronPython in CODESYS:

We’re creating our own Module using ScriptEngine.CreateModule(), and then 
providing our objects using ScriptScope.SetVariable(). Constants, instances and 
delegates are provided directly, classes/types are passed through 
DynamicHelpers.GetPythonTypeFromType().

Best regards

Markus Schaber

CODESYS® a trademark of 3S-Smart Software Solutions GmbH

Inspiring Automation Solutions
________________________________
3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50

E-Mail: m.scha...@codesys.com<mailto:m.scha...@codesys.com> | Web: 
codesys.com<http://www.codesys.com> | CODESYS store: 
store.codesys.com<http://store.codesys.com>
CODESYS forum: forum.codesys.com<http://forum.codesys.com>

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade 
register: Kempten HRB 6186 | Tax ID No.: DE 167014915
________________________________
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received
this e-mail in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorised copying, disclosure
or distribution of the material in this e-mail is strictly forbidden.
From: Ironpython-users 
[mailto:ironpython-users-bounces+m.schaber=codesys....@python.org] On Behalf Of 
Benedikt Eggers
Sent: Monday, December 21, 2015 11:54 AM
To: ironpython-users@python.org
Subject: [Ironpython-users] Creating public IronPython API

Hello,

when you create public ironpython apis for your applications written in C#,
would you prefer to create the API using c# with using the PythonModule 
attribute,
or would you wrap every thing in IronPython written modules and call the in c# 
written application core from there?
Currently I’m struggling with this descision and don’t know, what will be the 
best solution.

Thank you all in advance!

Benedikt
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to