I recently started using PyCharm as my external code editor and successfully set up all the necessary libraries. However, I’m encountering some issues with the autocomplete feature.
In this simple example I created a Brep using the CreateFromLoft method, which outputs a Brep array (Brep[]). When I attempt to extract the first Brep from this array and convert it into a surface, PyCharm does not recognize its properties and fails to provide autocomplete suggestions.
PyCharm does not know what RhinoCommon types are. For example your list contains Rhino.Geomery.Brep but PyCharm does not have a way of knowing the type members so it can autocomplete for you.
The way this is usually done is through “stub” files (.pyi file extension):
If you are using Rhino 7, you can use this python package that contains stubs for RhinoCommon 7:
If you are using Rhino 8, launch Rhino and run the ScriptEditor command to open the editor. Python 3 inside of Rhino will start creating stub files and will place them under:
Hello, how can I install the stub files for rhino 8? I don’t know why but before I have it when I uploaded them on VS code the folder on this path .rhinocode\py39-rh8\site-stubs became empty. Thank you