By âIntellisenseâ do you mean dir() and help()?
If so, itâs likely. A single .dll contains many equivalents to IronPython âmodulesâ (aka namespaces), therefore dir and help will probably have to target single classes.
Also, they might just not work awesomely, as they do for standard Python types, but I havenât seen that so far.
I now placed the dll in a folder that doesnât depend on the user.
Another thing I noticed is that you have to click OK or TEST in order for it to get the path and respectively the dll. Is there another way to include it into the code so that it acts more native?
At present, no âintellisenseâ will happen till the module is loaded. It will be loaded once clr.AddReference__() will be executed. You can understand all implications here. These are the advantages and disadvantages of working directly with a compiled .Net libraryâŚ
Thanks,
Giulio
â
Giulio Piacentino
for Robert McNeel & Associates giulio@mcneel.com
in path C:\Users\User\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (xxxxxx-xxx-xxx-xxxx-xxxxxxxx)\settings\lib
creating something like:
This way theoretically it should be possible to be imported more natively.
Unfortunately, Iâm too much of a python noob, and donât know Rhino.IronPython architecture to be successful in this task.
If you can help me, it will be great.
If notâŚwell, Iâll continue struggling and after a few crashes and periods of giving up and starting again, Iâll probably end up figuring it out.
This is not an âimportâ problem and should not be treated as an âimportâ problem. This is related to âloadingâ the assembly. Thatâs why the assembly cannot autocomplete before the first clr.AddReference() method call succeeds.
Once you know more about .Net, youâll see that âAdding a referenceâ is not the same as âImportingâ a namespace. For example, the C# Scripting components have an obscure interface to add references, that most users ignore and that is not really easy to use, either. The âclrâ pseudo-namespace is actually more useful in Python, because it can be programmed.
That being said, when you have a problem to solve, Iâll be happy to help.
Thanks,
Giulio
â
Giulio Piacentino
for Robert McNeel & Associates giulio@mcneel.com