Skip to content

Instantly share code, notes, and snippets.

@mostaphaRoudsari
Last active November 3, 2020 22:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mostaphaRoudsari/eeeeb97490683650a35d to your computer and use it in GitHub Desktop.
Save mostaphaRoudsari/eeeeb97490683650a35d to your computer and use it in GitHub Desktop.
Autocomplete for Grasshopper and Dynamo in Atom.io

##Atom Autocomplete for Dyanamo and Grasshopper

This is a modified version of autocomplete-plus-python-jedi for Atom.io You need to replace the .py file and also copy gh.py and ds.py inside installation folder.

This is a hack and is not meant to be used by so many peopel! I adding parsing Dynamo and Grasshopper's API to the process by adding a number of functions to the code.

In case you want to use it you need to install the original package and replace jedi-provider.py file with the file in this gist and also copy gh.py and dynamo.py to the package installation directory. Also you should make sure to import Rhino as rc and DesignScript as ds or copy the code below to your file. I told you this is just a hack!

import clr
import sys

sys.path.append(r'C:\Program Files (x86)\Rhinoceros 5\System')
clr.AddReference("RhinoCommon")
import Rhino as rc

sys.path.append(r"C:\Program Files\Dynamo 0.9")
clr.AddReference('ProtoGeometry')
import Autodesk.DesignScript as ds
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

@ksobon
Copy link

ksobon commented May 15, 2017

Hey Mostapha, which Directory do the gh.py and dynamo.py need to go? Also, we are at version 1.3 care to elaborate what the changes were you made here to make this work so that I can update this to 1.3? I would be a happy man if I could get autocomplete in Dynamo/Grasshopper in Atom. Thanks!

@FabioDeAgostini
Copy link

Hi @ksobon, @mostaphaRoudsari,
I'm looking exactly the same, did you figured how to make it works fine?
I cannot find the jedi-provider and where to put the gh and dy files (and if it's working on 1.3 too).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment