|
Speech Recognition inside Grasshopper for Rhino
Hey everyone, I was hoping to maybe get some pointers. I’m trying to implement speech recognition using python inside rhino\grasshopper, which in turn relies on IronPython (2.7.8) as its platform. So
Hey everyone, I was hoping to maybe get some pointers. I’m trying to implement speech recognition using python inside rhino\grasshopper, which in turn relies on IronPython (2.7.8) as its platform. So
|
By
...
· #156
·
|
|
How to support debug in IronPython in .NET software
Hello, I am also developing a .Net based debugger and code reflector for IronPython so I would find interesting the "offical" answer. Till that time, as a starting point you may want to look at this a
Hello, I am also developing a .Net based debugger and code reflector for IronPython so I would find interesting the "offical" answer. Till that time, as a starting point you may want to look at this a
|
By
László Frank
· #155
·
|
|
How to support debug in IronPython in .NET software
Hello all, our .NET program supports IronPython scripting. We are trying to support debugging (e.g. set break point, step into, step over, run to breakpoint). A script can get/set data in the .NET pro
Hello all, our .NET program supports IronPython scripting. We are trying to support debugging (e.g. set break point, step into, step over, run to breakpoint). A script can get/set data in the .NET pro
|
By
Hailiang Shen
· #154
·
|
|
How to define a c# class to support IronPython power operator **
Thanks for the speedy response. This sample works very well. Hailiang
Thanks for the speedy response. This sample works very well. Hailiang
|
By
Hailiang Shen
· #153
·
|
|
How to define a c# class to support IronPython power operator **
There are a bunch of variations (e.g. using the name "__pow__", using the name "Power", static methods, instance methods), but here is one example: public class MyClass { private readonly double x; pu
There are a bunch of variations (e.g. using the name "__pow__", using the name "Power", static methods, instance methods), but here is one example: public class MyClass { private readonly double x; pu
|
By
Stéphane Lozier
· #152
·
|
|
How to define a c# class to support IronPython power operator **
Hello all, I am defining a C# assembly to be used in IronPython. For one C# class, I need to support the IronPython power operator (**). For example in IronPython MyClass1 ** 3 will automatically call
Hello all, I am defining a C# assembly to be used in IronPython. For one C# class, I need to support the IronPython power operator (**). For example in IronPython MyClass1 ** 3 will automatically call
|
By
Hailiang Shen
· #151
·
|
|
How do I access another api using Ironpython and VS2017
System.Activator.GetObject requires to inputs: (Type, String) If the String presents HKEY_CLASSES_ROOT, then how do I get the type from this. I have tried the methods mentioned in guide: https://ironp
System.Activator.GetObject requires to inputs: (Type, String) If the String presents HKEY_CLASSES_ROOT, then how do I get the type from this. I have tried the methods mentioned in guide: https://ironp
|
By
jpahto@...
· #150
·
|
|
How do I access another api using Ironpython and VS2017
Might just be a typo when you wrote your email, but clr.GetClrType(type("SldWorks.Application")) will give you System.String so obviously that won't work. If it's just a typo then I have no idea, you
Might just be a typo when you wrote your email, but clr.GetClrType(type("SldWorks.Application")) will give you System.String so obviously that won't work. If it's just a typo then I have no idea, you
|
By
Stéphane Lozier
· #149
·
|
|
How do I access another api using Ironpython and VS2017
If I try to call an open application: swMain = System.Activator.GetObject(clr.GetClrType(type("SldWorks.Application")) ,"SldWorks.Application.24") Traceback (most recent call last): File "<stdin>", li
If I try to call an open application: swMain = System.Activator.GetObject(clr.GetClrType(type("SldWorks.Application")) ,"SldWorks.Application.24") Traceback (most recent call last): File "<stdin>", li
|
By
jpahto@...
· #148
·
|
|
How do I access another api using Ironpython and VS2017
"SldWorks.Application" can be activated by the version number. for SW 2012 ("SldWorks.Application.20") for SW 2013 ("SldWorks.Application.21") for SW 2014 ("SldWorks.Application.22") for SW 2015 ("Sld
"SldWorks.Application" can be activated by the version number. for SW 2012 ("SldWorks.Application.20") for SW 2013 ("SldWorks.Application.21") for SW 2014 ("SldWorks.Application.22") for SW 2015 ("Sld
|
By
jpahto@...
· #147
·
|
|
How do I access another api using Ironpython and VS2017
If I use: swApp = System.Activator.CreateInstance(Type.GetTypeFromProgID("SldWorks.Application")) and then: dir(swApp), it throws: Traceback (most recent call last): File "<stdin>", line 1, in <module
If I use: swApp = System.Activator.CreateInstance(Type.GetTypeFromProgID("SldWorks.Application")) and then: dir(swApp), it throws: Traceback (most recent call last): File "<stdin>", line 1, in <module
|
By
jpahto@...
· #146
·
|
|
How do I access another api using Ironpython and VS2017
This is normal Python behavior: >>> import sys as bla>>> assert "path" in dir(bla) >>> from bla import path ImportError: No module named bla
This is normal Python behavior: >>> import sys as bla>>> assert "path" in dir(bla) >>> from bla import path ImportError: No module named bla
|
By
Stéphane Lozier
· #145
·
|
|
How do I access another api using Ironpython and VS2017
I tried to look at the steps through IronPython Interactive window: import clr clr.AddreferenceToFile("SolidWorks.Interop.sldworks.dll") import Solidworks.Interop.sldworks as SldWorks After this: type
I tried to look at the steps through IronPython Interactive window: import clr clr.AddreferenceToFile("SolidWorks.Interop.sldworks.dll") import Solidworks.Interop.sldworks as SldWorks After this: type
|
By
jpahto@...
· #144
·
|
|
How do I access another api using Ironpython and VS2017
Looking at a SolidWorks.Interop.sldworks.dll that I found on NuGet, it seems like SldWorks and ModelDoc2 are interfaces and not instances so the first argument is expected to be an instance of the int
Looking at a SolidWorks.Interop.sldworks.dll that I found on NuGet, it seems like SldWorks and ModelDoc2 are interfaces and not instances so the first argument is expected to be an instance of the int
|
By
Stéphane Lozier
· #143
·
|
|
How do I access another api using Ironpython and VS2017
I have defined the search path for Solidworks\api\redist on VS2017. I have defined in code: clr.Addreference("Solidworks.Interop.sldworks") import Solidworks.Interop.sldworks as swApp swApp.SldWorks.A
I have defined the search path for Solidworks\api\redist on VS2017. I have defined in code: clr.Addreference("Solidworks.Interop.sldworks") import Solidworks.Interop.sldworks as swApp swApp.SldWorks.A
|
By
jpahto@...
· #142
·
|
|
How do I access another api using Ironpython and VS2017
How does it go sideways? Without information on what is going wrong, it will be very hard to help you.
How does it go sideways? Without information on what is going wrong, it will be very hard to help you.
|
By
Alex Earl
· #141
·
|
|
How do I access another api using Ironpython and VS2017
Hello, I would like to talk about this topic, as there is so scarcely information about this. As an engineer I would like to find creative solutions to all kinds of problems that I have come across. O
Hello, I would like to talk about this topic, as there is so scarcely information about this. As an engineer I would like to find creative solutions to all kinds of problems that I have come across. O
|
By
jpahto@...
· #140
·
|
|
.NET Core: Can't reach imported static C#-classes in IronPython using .NET Core
This solved my problem, thank you! /Thomas
This solved my problem, thank you! /Thomas
|
By
...
· #139
·
|
|
.NET Core: Can't reach imported static C#-classes in IronPython using .NET Core
.NET Core has a different set of assemblies. Try doing a "clr.AddReference(' System.IO.FileSystem')" before your import.
.NET Core has a different set of assemblies. Try doing a "clr.AddReference(' System.IO.FileSystem')" before your import.
|
By
Stéphane Lozier
· #138
·
|
|
.NET Core: Can't reach imported static C#-classes in IronPython using .NET Core
Hi everyone, I am currently porting an existing code base using .NET Framework and IronPython to .NET Core. In .NET Core it seems like the statement "from System.IO import *" does not import static cl
Hi everyone, I am currently porting an existing code base using .NET Framework and IronPython to .NET Core. In .NET Core it seems like the statement "from System.IO import *" does not import static cl
|
By
...
· #137
·
|