How to Export Geometry in Grasshopper using C#

  Рет қаралды 8,091

Junichiro Horikawa

Junichiro Horikawa

3 жыл бұрын

In this tutorial video I'm showing how to you can export Grasshopper geometry to various format like 3dm / obj / iges using C# scripting. The method using here is using a RunScript function to run Rhino's Export command which can be used tp run any Rhinoceros command from Grasshopper.
[Requirements]
- Rhino 6
[File Download]
github.com/jhorikawa/Grasshop...
[Last Video related to Grasshopper Programming]
Graham Scan Algorithm with Grasshopper C#: • Graham Scan Algorithm ...
[Grasshopepr Tutorial Playlists]
Rhino / Grasshopper Programming Tutorials: • Rhino / Grasshopper Pr...
Grasshopper Tutorials: • Grasshopper Tutorials
Grasshopper Tips: • Grasshopper Tips
Grasshopper Freestyle Design (Collaboration): • Grasshopper Freestyle ...
[Facebook Page]
Parametric.D...
[Book Page]
www.bnn.co.jp/books/8482/
[Buy on Amazon]
bit.ly/parametricdesignwithgra...
#Csharp #Grasshopper #Rhinoceros #JunichiroHorikawa

Пікірлер: 24
@andreasettimi4477
@andreasettimi4477 3 жыл бұрын
Just want to take a sec to thank you, ALL your videos are amazingly interesting and very useful, thanks again, and keep it up!
@tosoja9714
@tosoja9714 3 жыл бұрын
Thanks so much. Very useful video, I have been stuck for about 2 weeks all because I am completely new to scripting in Rhino. I need to do a parametric study and automate Rhino. First, I had to watch a video on how to use grasshopper for rhino. Followed by a video on how to automate grasshopper which is very good but did not have a tutorial on how to export with a script. I then had to search for how to export. Fortunately, I found this video. Now my whole script is a combination of Python which I am using to automate grasshopper and c# to save it. However, I do not care whether I am using more than one language or not. I am just glad I can now move on to the next task after been stuck for a while.
@marshalmaskarenj
@marshalmaskarenj 2 жыл бұрын
Tried with Python to export OBJs, but script didn't work as expected: although it worked for singular geometries, it was exporting random mesh when trying to export multiple objects. Your script is very helpful and super efficient, THANK YOU SO MUCH!
@ramanboywss
@ramanboywss 3 жыл бұрын
Saved my business. Thank you! 助かりました!
@xiaoyangzheng5761
@xiaoyangzheng5761 2 жыл бұрын
本当に役に立ちます
@dzabota7048
@dzabota7048 Жыл бұрын
Thank you so much for this tutorial.i have a question. It is possible to export a geometry (mesh) directly to another program to do FEA analysis like robot structural analysis.
@temporaryatmospheres1245
@temporaryatmospheres1245 3 жыл бұрын
You export just the geometry or the geometry with some animation ? It could works in blender ? I mean I want to export some animation from grasshopper to blender to adding materials do you think it works for me ?
@sergey_fedorenko
@sergey_fedorenko 3 жыл бұрын
Great lessons! Please tell me how to create a new layer for the baked geometry and add attribute user text to the geometry.
@amartuvshinnarangerel4336
@amartuvshinnarangerel4336 Жыл бұрын
I need that too!
@randoma83
@randoma83 3 жыл бұрын
Thank you for the tutorial, I always wanted to export directly from Grasshopper. Do you think is also possible inside the script node tell the System to "send" the saved meshes to another program? For example: save the OBJ then open it in another program like 3dsmax, blender, modo... build something like a bridge between the two applications. Thanks
@JunichiroHorikawa
@JunichiroHorikawa 3 жыл бұрын
uncle pritt I think it’s doable but I think you also need to use the SDK of the application (like Max) you want to bridge with in order to send the data.
@Esiddig
@Esiddig 2 жыл бұрын
Hi I wonder how can export and import to fbx format and embed the data in the model in grasshopper ?
@user-es5np9cg5k
@user-es5np9cg5k 10 ай бұрын
I still get an error: the path contains invalid characters (line 0). What to do? How to fix it?
@WALID0306
@WALID0306 26 күн бұрын
thanks ! Blessings
@shengc8761
@shengc8761 3 жыл бұрын
Hi there, appreciate this so much. Is this implementable in gh python as well?
@shengc8761
@shengc8761 3 жыл бұрын
#ah figured it out import rhinoscriptsyntax as rs import Rhino if export: guids=[] print geometries.BranchCount for i in range(geometries.BranchCount): for n in range(geometries.Branches[i].Count): geom = geometries.Branches[i][n] guid=Rhino.RhinoDoc.ActiveDoc.Objects.Add(geom) guids.append(guid) for g in guids: Rhino.RhinoDoc.ActiveDoc.Objects.Select(g) filepath = directory + filename cmd = "_-Export " + "\"" + filepath + "\"" + " _Enter" Rhino.RhinoApp.RunScript(cmd, False) Rhino.RhinoDoc.ActiveDoc.Objects.Delete(guids,True)
@federicodagostino2862
@federicodagostino2862 3 жыл бұрын
Hi, thanks for all your great tutorials. For the moment I use plugins to export .ai files. Is there a way like this to do it?
@JunichiroHorikawa
@JunichiroHorikawa 3 жыл бұрын
Federico D'Agostino I think you can do that by simply changing the filename with .ai extension for the c# script shown in this video.
@humann001
@humann001 3 жыл бұрын
How about importing? I've read it's not possible. Thanks for the video, it was great! (as usual)
@JunichiroHorikawa
@JunichiroHorikawa 3 жыл бұрын
I think you can import objects inside Grasshopper as well. I can try if anybody is interested.
@humann001
@humann001 3 жыл бұрын
@@JunichiroHorikawa pleeease!
@amartuvshinnarangerel4336
@amartuvshinnarangerel4336 Жыл бұрын
@@JunichiroHorikawa Please do it
@chocolata105
@chocolata105 4 ай бұрын
Babe what do u mean manually make it in rhino
How to Import Geometry in Grasshopper using C#
23:50
Junichiro Horikawa
Рет қаралды 6 М.
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 57 МЛН
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2,6 МЛН
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 15 МЛН
Rhino User Webinar: Advanced 3D printing with Grasshopper
1:08:08
McNeel Europe
Рет қаралды 17 М.
3.2 Scripting with Geometry - Advanced Development in Grasshopper
31:16
Generate Grasshopper Components with C#
1:05:08
Junichiro Horikawa
Рет қаралды 11 М.
SECRET Plugin that you've never heard of - REVEALED
5:32
How to Rhino
Рет қаралды 82 М.
How to use compute.rhino3d with Unity
1:06:18
Junichiro Horikawa
Рет қаралды 9 М.
The deal with Data Trees
20:56
Andrew Heumann
Рет қаралды 9 М.
Creating Arrays Along Curves WITH GRASSHOPPER!
10:12
The Rhino Essentials
Рет қаралды 22 М.
Топ-3 суперкрутых ПК из CompShop
1:00
CompShop Shorts
Рет қаралды 415 М.
cool watercooled mobile phone radiator #tech #cooler #ytfeed
0:14
Stark Edition
Рет қаралды 7 МЛН
Iphone or nokia
0:15
rishton vines😇
Рет қаралды 335 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 2,7 МЛН