Grasshopper

algorithmic modeling for Rhino

Anders Holden Deleuran
  • Male
  • Copenhagen
  • Denmark
Share on Facebook
Share

Anders Holden Deleuran's Friends

  • Chapuline
  • Gregory Quinn
  • Phil Ayres
  • Sood Aakriti
  • Fakinos Konstantinos
  • Marc
  • 筑梦NARUTO
  • ng5 Alex
  • CITA
  • Starsk Lara
  • Henrik Leander Evers
  • Brian Ringley
  • Mostapha Sadeghipour Roudsari
  • Miguel Rus
  • Erick Vásquez

Anders Holden Deleuran's Groups

Anders Holden Deleuran's Discussions

C# Component: Keyboard Shortcuts, More Than One Editor Instance, Missing a Console
2 Replies

I've been getting up to speed with the C# scripting component and have a few questions/suggestions (coming from a GHPython component experience): 1) Does the C# component have any keyboard…Continue

Started this discussion. Last reply by Anders Holden Deleuran May 21.

GHPython Some Bottlenecks (Bugs?)
6 Replies

Hi Giulio and Steve, I've recently noticed a couple of bottleneck with the GHPython component which can quite severely impede on performance. Thought I would bring them up here so as to hopefully…Continue

Started this discussion. Last reply by Anders Holden Deleuran May 17.

Geometry Parameter: Vector being cast to Point

When you pass a Vector3D through a Geometry parameter it is cast to Point3D. Seems like a bug to me. See attached file. Best, AndersContinue

Started Jan 20

Wish: Add Single Click Functionality to Boolean Toggle
4 Replies

Hi David,I've been using the RCP quite a lot lately and have come to appreciate how a Boolean Toggle published in the RCP acts more like a radio button requiring only a single mouse click to change…Continue

Started this discussion. Last reply by Anders Holden Deleuran Nov 12, 2014.

 

Hello, Anders Holden Deleuran!

Latest Activity

Anders Holden Deleuran replied to Roger Sterling's discussion Mesh Walker
"Thanks Mat, your observations are all pretty spot on. We had a longer discussion about this model here. There's a link to one of my GitHub repos with an example for how to get started with NetworkX using a mesh as an input for generating a…"
Wednesday
Anders Holden Deleuran replied to Sch's discussion How to holes ?
"Those aren't technically holes though, they're rotated bricks. There are quite a few thread on this subject here on the forum. You can run a search here on the right.."
Tuesday
Anders Holden Deleuran replied to Richard Schaffranek's discussion Data Recorder Reset?
"I would recommend downloading the Grasshopper SDK (Help -> Download SDK Help) and getting acquainted with some mode of introspection. In GHPython you can use dir(), help() and type() for this. In the C# component you can use the Reflect()…"
Tuesday
Anders Holden Deleuran replied to Richard Schaffranek's discussion Data Recorder Reset?
"Here's a GHPython approach, should be straight forward to convert to C#/VB.."
Tuesday
Anders Holden Deleuran replied to Dimitar Baldzhiev's discussion python to C# translation help
"Sometimes it's better to think one step backwards though ;) I think you might have missed my point. By profiling your code/examining your component more closely you might be able to identify bottlenecks (in this case, the cost of casting to…"
Sunday
Anders Holden Deleuran replied to Lasse Rahbek's discussion Connectivity control
"One approach would be to consider your network as a graph. In graph theory, the problem you are describing would be equivalent to what is known as disconnected graph. In GHPython you could use NetworkX to check whether or not your graph is…"
May 24
Anders Holden Deleuran replied to Dimitar Baldzhiev's discussion python to C# translation help
"Weird, on my system your definition is consistently slower than Dimitar's original script: "
May 24
Anders Holden Deleuran replied to Dimitar Baldzhiev's discussion python to C# translation help
"Hi Dimitar, I just tried out the tips I posted here on your GHPython component. It severely speeds up the calculation, by about an order of 50!! Note that I did not open/read/alter your script, this is just from not setting Type Hints on your…"
May 24
Anders Holden Deleuran replied to Anders Holden Deleuran's discussion C# Component: Keyboard Shortcuts, More Than One Editor Instance, Missing a Console
"Thanks David. That sounds very promising, looking forward to seeing how it develops. I'm really liking all these new TextMate/Sublime-like editors, so any potential developments in that direction would be just swell :)"
May 21
David Rutten replied to Anders Holden Deleuran's discussion C# Component: Keyboard Shortcuts, More Than One Editor Instance, Missing a Console
"1) No. You have to press the Green Arrow button to run the script without closing the editor. 2) They can be added and will be added, though probably not for GH1. 3) We'd like to provide better debugging in the future for all our script…"
May 21
Anders Holden Deleuran posted a discussion

C# Component: Keyboard Shortcuts, More Than One Editor Instance, Missing a Console

I've been getting up to speed with the C# scripting component and have a few questions/suggestions (coming from a GHPython component experience): 1) Does the C# component have any keyboard shortcuts? Specifically for "Run Script". In GHPython you can hit F5 to run the script and Ctrl+F5 to run then close the script. This is great as you do not need to take your hands of the keyboard. 2) In the GHPython editor you can only open one instance of the script editor. This is convenient as you don't…See More
May 20
Anders Holden Deleuran replied to Alexander's discussion Meshy question : Edge hinges
"As far as I can recall that script is also included in the "Shell" cluster which can be found under the "Utility" tab of Kangaroo 0.099.. Either way, should be plenty to get started :)"
May 20
Anders Holden Deleuran replied to Alexander's discussion Meshy question : Edge hinges
"Daniel made a component for this called HingePoints. It's in Kangaroo 0.099 under the Mesh tab.."
May 20
Anders Holden Deleuran replied to Aroving's discussion rhinoscripsyntax help
"Also, get acquainted with the dir(), help() and type() Python functions. They're really useful for inspecting RhinoCommon objects (well, for inspecting everything really :)"
May 20
Omar Helmy liked Anders Holden Deleuran's video
May 19
Anders Holden Deleuran replied to Charles Fried's discussion Learning C & python
"There's quite a few threads already on this subject. This thread provides a quite nice overview specific to GH. In addition to Jens' and Peters notes, I find it important to note that there's more to it than just…"
May 19

Profile Information

Company, School, or Organization
PhD Fellow, CITA, Royal Danish Academy of Fine Arts, School of Architecture
Web or Blog
http://www.andersholdendeleuran.com

Anders Holden Deleuran's Photos

Loading…
  • Add Photos
  • View All

Anders Holden Deleuran's Videos

  • Add Videos
  • View All

Anders Holden Deleuran's Blog

Mesh Analysis GHPython Components

Hi All,



I'm currently in the process of wrapping my head around GitHub. Seeing as how I'm now back in academia I thought this might be a good chance to share some code, for once :)



CITA recently helped conduct the Amphibious Hamburg workshop at the AAC in Hamburg co-tutored by…

Continue

Posted on July 17, 2014 at 6:30am — 7 Comments

Comment Wall (13 comments)

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

Join Grasshopper

At 7:31am on November 19, 2014, hamia Aghaiemeybodi said…

Many thanks Anders,

I used xlrd and xlwt it works but its a bit tricky. I'll try the .NET methods.

cheers

At 2:55pm on November 17, 2014, hamia Aghaiemeybodi said…

Hi Anders,

Do you know how can I open and excel sheet in python grasshopper, add some line to the sheet, save and close it!

Thanks

At 2:20pm on October 17, 2014, hamia Aghaiemeybodi said…

Hi Anders, thanks for the reply. I checked that already it says if it is cylinder but I'm looking for a way to find out an easy way to pre-rationalize sub-surfaces which are not cylinder but close to cylinder so I can convert them to cylinder surface later! if it make any sense to you . . .

At 5:24pm on October 10, 2014, hamia Aghaiemeybodi said…

Hi Anders;

Do you any easy and basic way to check if a double surface cab get converted into cylinder surface? Basically for fabrication to check if I can reduce the cost by converting few double curved panel and get more or less the same result!

many thanks!

At 7:30am on January 29, 2014, hamia Aghaiemeybodi said…

Many thanks Anders;

I figured that out, now I'm looking for way to convert text to one single curve (to save time for laser cutting). At the moment i get the out line of text as curve which is great but still time consuming.

Regards,

H/

At 7:26am on January 28, 2014, hamia Aghaiemeybodi said…

here is the complete one:

if(!string.IsNullOrEmpty(face) && size > 0 && !string.IsNullOrEmpty(content) &&
pl.IsValid)
{

var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);
Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;

if(txt != null)
{
var tt = txt.Geometry as Rhino.Geometry.TextEntity;
A = tt.Explode();
}

RhinoDoc.ActiveDoc.Objects.Delete(te, true);

At 7:14am on January 28, 2014, hamia Aghaiemeybodi said…

Hi Anders;

Do you know how can i convert  this c# code into python? The goal is to creat single curve text for laser cut:

RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;

thanks . . .

At 12:17am on March 7, 2013, hamia Aghaiemeybodi said…

Hi.

Of course. Thanks for reply. I'm using conditional check. It helps more and as you said easier to figure out where the problem is.

Thanks,

At 9:57am on March 4, 2013, hamia Aghaiemeybodi said…

Hej man,

I found it again, seems like to solve my problem i just need to post my question on your wall :D . .. 

cheers...

At 8:04am on March 4, 2013, hamia Aghaiemeybodi said…

Hi anders,

I'm trying to split curves in python and i get this eror:

Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid

Im sure its Guid!!!

here is the simple script:

import rhinoscriptsyntax as rs
import Rhino as rc
curve01=rs.coercegeometry(x)
curve01.Domain = rc.Geometry.Interval(0,1)
print (rs.CurveDomain(curve01))
a=rs.SplitCurve(curve01,y)

ay idea!

Thanks.

 
 
 

Translate

Search Grasshopper

© 2015   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service