Python - Intellisense

When importing one of my .NET Assemblies , intellisense does not show the methods in the Assembly. However works for windows one : This is my code
import clr
import sys

clr.AddReference(‘System.Windows.Forms’)
from System.Windows.Forms import *

sys.path.append(r"C:\Work\Cellario\Cellario\bin\Debug") # path of dll
clr.AddReference(“HRB.Cellario.Scripting.API.dll”) # the dll
from HRB.Cellario.Scripting.API import *

clr.AddReference (“Utils”) # the dll
from Cellario.Utilities import *

class Person:
def init(self, name, age):
self.name = name
self.age = age

def myfunc(self):
print("Hello my name is " + self.name)

p1 = Person(“test”, 100)
print(p1.myfunc() )
print( p1.age )

MessageBox.Show(p1.name) # this work well

print(Utils.RSQ(‘dd’)) # This is my custom Assembly and intellisense is not avaiable or code compeletion

print(ScriptExtensions.GetScriptName(“FF”)) # This is my custom Assembly and intellisense is not avaiable or code compeletion

Hi,

Our PythonParser’s IntelliSense engine needs to be configured explicitly by setting CodeEnvironment’s reference and imports, like this:

        var codeEnvironment = new CodeEnvironment(null, paths, imports, references, Alternet.Common.TechnologyEnvironment.WindowsForms);

        pythonParser.CodeEnvironment = codeEnvironment;

Please refer to our CustomAssembly quick-start project (the one for Python). It shows how the Python parser can be configured, so it understands types from the external assembly.

Kind regards,
Dmitry