Grasshopper

algorithmic modeling for Rhino

hamia Aghaiemeybodi
  • Male
  • Stockholm
  • Sweden
Share on Facebook
Share Twitter

Hamia Aghaiemeybodi's Friends

  • Weihao Liang
  • Örn Erlendsson
  • Kayrokh Moattar
  • Ali Mahabadi
  • Alireza Memarian
  • Sonja Krneta
  • Polina Arendarchuk
  • patric guenther
  • Negar
  • morteza alinaghi pour
  • Peyman Poostchi
  • Gustav Nordström
  • alessandra
  • navidhatefnia
  • MARIA MINGALLON

hamia Aghaiemeybodi's Groups

hamia Aghaiemeybodi's Discussions

convert c# to python
10 Replies

Hi,Does anyone know what's the equivalent code python for this:var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);Rhino.DocObjects.TextObject txt =…Continue

Started this discussion. Last reply by hamia Aghaiemeybodi Feb 2.

make a new datatree and new brachPath in python
2 Replies

Hi Steve,Do you have any idea how can i make a new datatree with new brachPath in python grasshopper! . . . Thanks,Continue

Started this discussion. Last reply by hamia Aghaiemeybodi Feb 20, 2013.

sort curves
2 Replies

Hey guys, any idea how to sort a list of curves in python? key is X value of start point.It seems python in grasshopper doesn't support AddTextDot. . . any solution!!!THX,Continue

Started this discussion. Last reply by hamia Aghaiemeybodi Feb 19, 2013.

write CSV file in python
7 Replies

Any idea how can i export points as a .csv file from grasshopper,python component!!!! . . .Thanks,Continue

Started this discussion. Last reply by Chien Si Harriman Apr 16.

 

hamia Aghaiemeybodi's Page

Latest Activity

hamia Aghaiemeybodi commented on hamia Aghaiemeybodi's photo
Thumbnail

Detail of Joints

"Ok. I made a quick example which shows how to get intersection and offset them, basically showing the logic and I think you can take it from there, I hope it helps:  Find the GH file…"
Nov 21
Weihao Liang commented on hamia Aghaiemeybodi's photo
Thumbnail

Detail of Joints

"I don't know whether I want to do is the same as yours. The first picture is the reference I found, and the second picture is the shelf I am working on. I would like to use the joint in the reference. I will try whether I can figure it out…"
Nov 20
hamia Aghaiemeybodi commented on hamia Aghaiemeybodi's photo
Thumbnail

Detail of Joints

"Hi weihao, I made that shelf 2 years ago and lost my files on my previous computer. but it's quite simple. if you send me your definition I'll try to do the same on yours! Just briefly explaining you need to go through these steps: -Find…"
Nov 20
Weihao Liang commented on hamia Aghaiemeybodi's photo
Thumbnail

Detail of Joints

"Hi~Would you mind sharing the definition about how to make the joint in grasshopper? I am working on my studio and want to make a joint which is similar to yours. But I have some problems with figuring out the definition~ Thanks"
Nov 19
Anders Holden Deleuran left a comment for hamia Aghaiemeybodi
"I've previously used the Python modules xlrd and xlwt for reading/writing Excel files. That said I think I would also consider using the .NET methods available through IronPython. See this…"
Nov 18
hamia Aghaiemeybodi replied to Benjamin Golder's discussion Least Cost Path on Mesh Python Script with NetworkX
"Hi Benjamin, Thanks for sharing. I'm foloowing your instruction and I get this error, any idea? Thanks"
Nov 18
Anders Holden Deleuran left a comment for hamia Aghaiemeybodi
"Hi Hamia, missed your post the other the day. Did you check out the Surface.IsCylinder() method? Looks like it should do the trick :)"
Oct 13
Chien Si Harriman replied to hamia Aghaiemeybodi's discussion write CSV file in python
"Classic."
Apr 16
hamia Aghaiemeybodi replied to hamia Aghaiemeybodi's discussion convert c# to python
"Many thanks Anders.  Looks great. H/"
Feb 2
Anders Holden Deleuran replied to hamia Aghaiemeybodi's discussion convert c# to python
"Hi Guys, I'll just reply here. I had a quick go at updating the script to work with single stroke fonts (find attached). You'll need to install the fonts and then select which one to use in the GH def. It is not exactly a foalproof update…"
Jan 29
Anders Holden Deleuran left a comment for hamia Aghaiemeybodi
"Not sure what happened to the reply I posted yesterday. Looks like you figured out.."
Jan 29
Anders Holden Deleuran left a comment for hamia Aghaiemeybodi
"I have attached a file I had laying around, can't remember who wrote it I'm afraid. It demonstrates how to use the use the RhinoCommon classes and methods in your script using Python. I think there was a thread with a single line font…"
Jan 29
hamia Aghaiemeybodi replied to hamia Aghaiemeybodi's discussion convert c# to python
"Thanks mostapha, it's almost the same, here is what i got: import Rhino as rcimport rhinoscriptsyntax as rs if(size == 0): size=1 if( (not(face is None)) and (size>0) and (not (content is None))and type(pl) == rc.Geometry.Plane ): print…"
Jan 29
Mostapha Sadeghipour Roudsari replied to hamia Aghaiemeybodi's discussion convert c# to python
"Hey Hamia! Is this what the function that you are looking for: https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1793"
Jan 28
hamia Aghaiemeybodi replied to hamia Aghaiemeybodi's discussion convert c# to python
"Got it, Perfect, Thanks..."
Jan 28
hamia Aghaiemeybodi replied to hamia Aghaiemeybodi's discussion convert c# to python
"Thx Yap but this part doesn't work in this format :var tt = txt.Geometry as Rhino.Geometry.TextEntity"
Jan 28

Profile Information

Company, School, or Organization
White-Dsearch
Web or Blog
http://www.maniahamia.com

hamia Aghaiemeybodi's Photos

Loading…
  • Add Photos
  • View All

Comment Wall (9 comments)

You need to be a member of Grasshopper to add comments!

Join Grasshopper

At 1:37pm on November 18, 2014, Anders Holden Deleuran said…

I've previously used the Python modules xlrd and xlwt for reading/writing Excel files. That said I think I would also consider using the .NET methods available through IronPython. See this link: http://www.ironpython.info/index.php?title=Interacting_with_Excel

At 3:25pm on October 13, 2014, Anders Holden Deleuran said…

Hi Hamia, missed your post the other the day. Did you check out the Surface.IsCylinder() method? Looks like it should do the trick :)

At 6:40am on January 29, 2014, Anders Holden Deleuran said…

Not sure what happened to the reply I posted yesterday. Looks like you figured out..

At 7:54am on January 28, 2014, Anders Holden Deleuran said…

I have attached a file I had laying around, can't remember who wrote it I'm afraid. It demonstrates how to use the use the RhinoCommon classes and methods in your script using Python. I think there was a thread with a single line font stroke somewhere here on the board. Hope that helps.. textToCrv.gh

At 7:38am on March 6, 2013, Anders Holden Deleuran said…

Haha, it's magic! Sorry for not responding sooner, just got back from London and Copenhagen. You can always use the Python function type() to check if your geometry is of the correct type. It's pretty handy. Also, you could use to add a conditional check before the split curve function. This way it is easier to narrow down where the problem is.

At 4:13am on February 28, 2013, Anders Holden Deleuran said…

Cool, glad that you managed to fix it. Guess you were feeding a RhinoScriptSyntax function something it didn't like :)

At 6:35am on November 30, 2011, Jeff Niemasz said…

Hi Hamia, you will find the material library file at C:\DIVA\Daylight\material.rad. It is a text file, you can add as many custom materials here as you like following the Radiance format. There is a short description on creating your own radiance materials on our wiki. The names you give the materials in the description will then show up using the material component in grasshopper.

At 6:51am on November 22, 2011, Jeff Niemasz said…

Hi Hamia,

First I would check over the video tutorials. If you have saved your rhino file with a name (no spaces) and run a daylight factor using the diva for rhino toolbar (the 1.9 version one- delete the old one), then you should have a folder with the needed analysis files here:

C:\DIVA\Temp\YOUR_RHINO_FILE

When you open grasshopper within the rhino file you are working with, it is checking this folder for the needed analysis files. These vary by the type of analysis, so check the "metric" panel on the component and select daylight factor. Let me know if this helps or if you are still getting the error even with the correct analysis files in the temp folder.

At 5:54am on November 21, 2011, to] said…

take a look here:

http://www.grasshopper3d.com/video/gecoradiance-1

Fabian Posadas has wrote a LUA component....

 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2014   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service