Search code examples
numpyironpythonrevit-apirevitpythonshellpyrevit

How can I use NumPy in IronPython for Revit API?


I'm writing a script in Revit API by using python. I'm looking to use NumPy since I'm trying to generate a lattice grid of points to place families to. However, I know NumPy is not compatible with IronPython since it's written in CPython. Is there a solution for this? If not, is there any good way to generate a lattice grid of points without using external packages like NumPy?


Solution

  • pyRevit has a CPython engine available. The post I linked was the beta announcement. It is now available in pyRevit master release. Some people have already sucessfully used pandas and numpy. pyRevit use pythonnet