image by archi-lab

mantis shrimp – tutorial series…

image by archi-lab

I have been getting a lot of questions about Mantis Shrimp in the past, and it seems like a lot of people have been having trouble using it, so here is a series of tutorials that should get you all started with Mantis Shrimp. They are really simple and if you follow them you will get the idea about some of the things that you should look out for (no tricks just make sure that you have ghPython installed and you should be good).

Installation instructions:

Export geometry from Grasshopper to Dynamo:

Export geometry from Dynamo to Grasshopper:


  1. Art says:

    i´ve a problem with mantis shrimp im grasshopper 9.0076
    the label archi lab does not run
    i put the mantis shrimps in component folder…

    could you help me


  2. art says:

    Python component is unblock and runnig OK
    Do I have to put some dll for mantis shrimp in component foder frmo GH?

    Attachment:  ghpythonJPG.jpg

    • art says:

      It is working


      I made a Félix Candela structure in GH and import to Revit by Mantis Shrimp and Dynamo
      I want to see it in Revit and edit…I only see it in Dynamo, how I transfer the NURBS in Dynamo to Revit????


      • Revit doesn’t have a very good support of NURBS Surfaces, so I am afraid that you would have to trick it into thinking that its something else. You definitely won’t be able to “modify” it freely when you do get it into Revit. The easiest way is to use the ImportInstance node in Dynamo, but that imports it as SAT file. Another possibility is to visualize it with Adaptive Components, or something like a Roof/Floor by Surface. It won’t work in all cases, but its worth a shot. Again, you will most likely have no control over it in Revit and no editing capabilities. Revit is not a very good modeling software – use Rhino/Grasshopper for that.

        Good luck!

      • Also, looking at your image, I have to say that you have failed in understanding the difference between how Revit works and how Rhino works. Rhino is not a BIM software, so everything is geometry (surfaces, solids, meshes, curves), unlike in Revit where geometry is just a means to visualize Information contained in Families. What you have made, is really easily translatable to something like Adaptive Components family, with two control points and a circular sweep. and then you can use start and end point of each extrusion in Grasshopper to locate it in Revit. This approach has been discussed on Grasshopper blogs/dynamo blogs so i refer you to look there for answers. Also, Mantis Shrimp and Dynamo is not needed for this task as you can go directly from Grasshopper to Revit using something like Lyrebird.

        • Art says:

          Thanks for the tips!
          Here at school we will connect a wind tunnel and I´am testing the interoperability between Rhino and Revit.
          I will draw an organic domus in Revit and see if I can other forms shapes
          with the Revit´s families

          thank you

  3. Kevin says:

    The Mantis Shrimp components are showing up red in Grasshopper. The Error is – 1. Solution exception:No module named mantisshrimp. I have copied the grasshopper user objects from the dynamo package to the grasshopper user objects folder. I have also installed ghpython. Do you have any idea why I am getting this error?

    Thanks Kevin.

    • In the Extra folder where all of the User Objects were located, there was a file named: Please do not move that file from its original location. That should fix the issue.

      • Kevin says:

        I don’t think I moved it. Any other thoughts?

        Attachment:  Error1.jpg

        • Check if you have IronPython 2.7 installed. Check again if you have ghPython installed. If you did, make sure to “unblock” it. Windows by default locks all files that were downloaded and unzipped locally. It’s best to unblock the zip file before unzipping.

  4. Kevin says:

    Figured out the problem(s). Dynamo wasn’t installing the 8.0 update, so I uninstalled the previous version and installed 8.0 from scratch. I was then getting the error that it couldn’t find “C:\Program Files\Rhinoceros 5 (64-bit)\System\RhinoCommon.dll” I’m not sure if this is just my Rhino, but my file was located instead at “C:\Program Files\Rhinoceros 5.0 (64-bit)\System\RhinoCommon.dll” Just slightly different.

    • yes, so there is a node in mantis shrimp called “specify rhino common path” or something like that. you can use that to specify a location for where your rhino is installed. I had to do that because people have their rhino installed in different locations. you can use that node to set a specific location for rhinocmmon.dll and it will work. I am glad it worked for you.

  5. AA says:

    Getting this error message :
    1. Solution exception:The path is not of a legal form.
    on the Mantis Shrimp – Export node in Grasshopper.
    the file path is whatever it is. It is a typical file path & I specified a .geo extension much like in your example.
    Can you help debug ?

  6. AA says:

    screengrab of last comment

  7. AA says:

    Is it due to the fact that I did not Specify RhinoCommon.dll Path back in Dynamo ?

    • The error message is pretty straight forward. There is something wrong with the file path that you are trying to write to. Please attach at least an image of it so I can better assist you.

      • A A says:

        any chance you can revisit my specific problem here – I tried this again after awhile and still the same issue – export nodes are all red
        error message says: 1. Solution exception:The path is not of a legal form.
        I am running rhino 5.0(64-bit) and dynamo1.0.0 and I reinstalled mantis shrimp package from manager and did the entire copy procedure to user objects folder. yes I have ghPython installed in GH
        The rhinoCommon.dll path thing is confusing me – but you don’t make any mention of it in your latest install video
        So if you have anything?? I am curious how to get this going

        Attachment:  2016-02-21_2238.png

        • your path to the file is too long. i think windows has a limit to how long a file path can be. try saving that file at your desktop to test with. if that works then you know for a fact that its the file path. then just remove some sub-folders or rename them to be shorter.

          • Ardeshir says:

            I wish that was the problem – but the export node begins as a red node – – containing the same error message – before any inputs are attached to it
            (replying from my phone otherwise I would load another pic)

          • Mhmmm, in that case I would like to see which line prints the error. Double click the component in Grasshopper, a new window will open, hit evaluate button at the bottom and tell me what the error is that displays in the console at the bottom of the window. I am interested in knowing which path is not correct by finding out which line of code generated the error. Can you post that for me?

          • Also, I have been noticing that if you have the old version of Dynamo installed 0.8 then it will get confused with 0.9. I recommend just keeping one current version of Dynamo and the latest that Mantis Shrimp was built against is Dynamo 0.9.1 Release Candidate. I would uninstall older ones, and remove all packages from the AppData folder for that version.

          • A A says:

            Alright – I have 0.9.1 and 1.0.0. installed now and user objects are the ones from 1.0.0
            I tried both.
            as long as 0.9.1 is the oldest version installed , mantis shrimp data export node in grasshopper work fine but I have attached a screen grab of the previous evaluate error message in ghpython that you requested

            Attachment:  2016-02-22_2244.png

          • That path looks fine to me. Like I said I have been having trouble when I was keeping more than one version of Dynamo installed. I would just get 0.9.1 and uninstall all others.

          • A A says:

            yeah thanks – I did that & it is working now
            fyi – it works with 1.0.0 with both 1.0.0 and 0.9.1 installed

  8. AA says:

    I tried uploading this once before. here goes again. if it doesn’t get uploaded, I will email it to you. It’s a screengrab of the error message with the filepath in the panel window. File path is in the panel.

  9. AA says:

    Hey I don’t think this upload attachment button is working.
    Anyway, I tried several filepaths – just copied and pasted from windows explorer address bar and added \filename.geo
    Something like C:\Users\myname\data\filename.geo
    Nothing out of the ordinary

    Two of the three export icons in your MantisShrimp palette are red on start. Not sure why this is.

  10. Giuseppe says:

    Hi Konrad, thanks for Mantis Shrimp,
    I tried to istall it and added the files into the user object folder in gh and copied pyton as well but I got this error message: No module named mantsshrimp
    Any help?

    Attachment:  Error-Message.jpg

  11. Giuseppe says:

    I haven’t moved that file, just download pyton from food4rhino…

  12. Giuseppe says:

    I forgot to mention that I am using Dynamo 8.0 and popped up a message when I downloaded manstis shrimp in dynamo that the version was for Dynamo 9.0. But this version apparantly doesn’t show the 3d background so I preferred to use the previous one.

    Attachment:  Dynamo-Extra.jpg

  13. Giuseppe says:

    I see, anyway the problem seems to be on the gh side..Seems that my rhinoCommon doesn’t exist anymore?

    Attachment:  Rino-common.jpg

    • It does exist. It might not exist at the specified location. Some people have it installed in different location on their drive. To solve that close Rhino/Grasshopper and open Dynamo. There is a node called Specify RhinoCommon.dll Path. Use that node. Then re-open Rhino and all should be good.

  14. Giuseppe says:

    Sorry, but is still not working…

  15. Giuseppe says:

    Perhaps this RhinoCommon.dll is not good.. There is a way how I could grab another valid RhinoCommon.dll ?

    • There is no such need. You specified a Rhino 5 WIP x64 rhino common path. Now, make sure that you are actually RUNNING that same version of Rhino. What I mean is that if you now fire up Rhino x86 and try to use it, then it will throw an error. Also, same goes for already created files. If you created a GEO file using a 32 bit rhino, don’t try to open it using a 64 bit DLL file.

    • BTW, what the heck is “WIP” Rhino version? I never seen one of those? Does it have limited functionality? Are you on MAC?

  16. Giuseppe says:

    No is not Mac but not the last service relase of Rhino 5.. WIP Work In Progress?
    It could be that pehaps.. :/

  17. Danijel R says:

    Hi Konrad,

    Thanks for this amazing addition for Grasshopper and Dynamo!! I think I made it work, and I believe that one of the issues was the name of the package folder in dynamo – I renamed it to ‘Mantis Shrimp’ and followed your instructions.

    I have a question with regard to Rhino version I am using. I have a 32bit Rhino and 64bit Dynamo and I am still able to move the geometry from GH to Dynamo. My understanding was that this is not possible. Is this something that was updated recently? If you could let me know any possible issues I could have when transferring geometry from 32bit to 64bit that would be great!!

    Thanks again!


    • That is not an issue. I think that as long as you specify RhinoCommon.dll from the proper version of Rhino then it should work. That means, if you are using Rhino 32bit then specify RhinoCommon.dll for a 32bit version. Dynamo has nothing to do with it. It’s more of a function of if you are in Rhino 32bit, your geometry is compatible with 32bit so in order to transfer it to Dynamo you need to use a 32bit RhinoCommon.

  18. Martin says:

    Hey :) So when connecting the .geo file to revit i get this error in dynamo –

    Attachment:  asd.png

    • I am not sure what you were trying to export, but that didn’t write correctly. Please post this to Mantis Shrimp Git Hub page, and post the sample Rhino/GH file so that I can see why its not serializing correctly. Thanks!

  19. Art says:

    K2 Sobon

    I’m back, I installed the plugin again to use these bridge Rhino/GH to Revit / Vassari.
    This year I had no problems all worked out, I learned more about Revit and hope to make environmental analyzes with complex geometry with Manrtishrimp´s interchangeability .
    Good to know that everything evolved, congratulations for your patience and for the development of this possibility

  20. abechan says:

    The Mantis Shrimp components are showing up red in Grasshopper.I have copied the grasshopper user objects from the dynamo package to the grasshopper user objects folder. I have installed IronPython2.7 and ghPython. I don’t move a file named: from its original location.
    Please, help me!

    Attachment:  0.jpg

  21. Kaken says:

    Hi Konrad,
    I’ve just installed Mantis.
    Nice work.
    Seems to work very well for me except one thing: the “Export Data” GH component is missing (in the tab, and in the GH User Object Folder).
    I’ve downloaded the last version.
    Do I update anything or download elsewhere just this comp? From .py files on GitHub or elsewhere?
    On your demo video , you have also a little block of Tools at the left of the Mantis Pannel that miss in mine: resulting from update versions?
    Thanks again for your works!

    Attachment:  PannelComps.png

    • Export data component doesn’t exist anymore. You can feed any data or geometry into Export Geometry component and it will process it. There was no need for duplication.


  1. Revit | Pearltrees

Leave a Comment