Grasshopper

generative modeling for Rhino

Matthew McDonnell
  • Male
  • Melbourne, Victoria
  • Australia
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (8)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Matthew McDonnell's Friends

  • Giulio Piacentino

Matthew McDonnell's Discussions

Grasshopper Class to call definition files properties?
7 Replies

David,Is there a class to call up the Document Properties? For example the definition file name? i.e. MyFile.ghOr further the text that can be entered into the 'Description' section of…Continue

Started this discussion. Last reply by Matthew McDonnell Jun 20, 2012.

List of Breps
3 Replies

Hey all,Some help would be appreciated on this one. I've been staring at my screen and can't see where I'm going wrong, although it seems it should be an obvious answer (as they all tend to be in…Continue

Started this discussion. Last reply by Matthew McDonnell Jun 12, 2012.

Create array of Vectors from input Points.
3 Replies

I've used a bit of RhinoScript before but this is my first foray into VB.NET. I have a single end point and a collection of start points. I want to create vectors from each start point to the same…Continue

Started this discussion. Last reply by David Rutten Jun 10, 2011.

 

Matthew McDonnell's Page

Latest Activity

Matthew McDonnell replied to Jason Kelly Johnson's discussion Congratulate DAVID RUTTEN on his ACADIA 2012 Award !!!
"Well deserved David, All the best. /M"
Oct 29, 2012
Matthew McDonnell replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"Thanks for your input guys. /m"
Jun 20, 2012
David Rutten replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"You're right, since I'm breaking this anyway I might as well dump modules altogether and make something which is easier to modify later on without breaking. -- David Rutten david@mcneel.com Poprad, Slovakia"
Jun 20, 2012
Giulio Piacentino replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"From C#, and in IL, vb.net modules are just sealed classes with static methods that  are marked with Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute. So users will be able to pick them in C#. One alternative mightbe to create a…"
Jun 20, 2012
David Rutten replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"Edit: screw it, I just did change those. Methods, constants and properties that used to be in Grasshopper.Global_Proc are now divided into Grasshopper.Tracing, Grasshopper.Versioning and Grasshopper.Utility. Unfortunately these are modules, not…"
Jun 20, 2012
David Rutten replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"Versioning is not part of the GH_Document, but you can get both the build-date and the version through the Global_Proc module (I know, horrible name): Grasshopper.Global_Proc.Version; Grasshopper.Global_Proc.VersionString;…"
Jun 20, 2012
Matthew McDonnell replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"Thanks Giulio, Exactly what I was after. I must admit I'm having trouble finding my way around the Grasshopper SKD - although I'm quite sure that has to do with the 'learning' curve I'm trying to push through. Is there…"
Jun 19, 2012
Giulio Piacentino replied to Matthew McDonnell's discussion Grasshopper Class to call definition files properties?
"Hi Matthew something as simple as this will do: GH_Document gd = owner.OnPingDocument(); A = gd.Properties.Description; I hope this helps, - Giulio________________giulio@mcneel.com"
Jun 19, 2012
Matthew McDonnell posted a discussion

Grasshopper Class to call definition files properties?

David,Is there a class to call up the Document Properties? For example the definition file name? i.e. MyFile.ghOr further the text that can be entered into the 'Description' section of the Definition under the Menu/Window/Document Properties? I can't seem to see it in the SDK documentation.Something similar to the following that would return information about the current file: Dim doc As RhinoDoc = RhinoDoc.ActiveDoc...Thanks,/mSee More
Jun 18, 2012
Matthew McDonnell replied to Matthew McDonnell's discussion List of Breps
"Thanks David, That worked a treat. I'm more or less self learning .NET coming from RhinoScript and have probably made a number of coding errors due to a lack of knowledge around the .NET framework. I haven't come across TryCast before. It…"
Jun 12, 2012
David Rutten replied to Matthew McDonnell's discussion List of Breps
"I'd write it something like this: -- David Rutten david@mcneel.com Poprad, Slovakia"
Jun 12, 2012
David Rutten replied to Matthew McDonnell's discussion List of Breps
"Dim Surfaces() As List (Of Brep)   why are there brackets behind the Surfaces variable name. Are you sure they are supposed to be there?   -- David Rutten david@mcneel.com Poprad, Slovakia"
Jun 12, 2012
Matthew McDonnell posted a discussion

List of Breps

Hey all,Some help would be appreciated on this one. I've been staring at my screen and can't see where I'm going wrong, although it seems it should be an obvious answer (as they all tend to be in hindsight).I'm trying to code  VB.NET component to use a string input (strFacadeSelector) to select all the geometry on a layer in my file. There are only surfaces on the layer in the Rhino file.arrSurfaces is working correctly and reporting all the Rhino.DocObjects.BrepObject (*Notably on {0;0} I feel…See More
Jun 12, 2012
David Rutten replied to Matthew McDonnell's discussion Create array of Vectors from input Points.
"There is no difference between Integer and Int32, they are different names for the same thing. Int32 is the official .NET framework name for the type and works both in VB and C#. Integer is available to VB programmers as a form of legacy support, as…"
Jun 10, 2011
Matthew McDonnell replied to Matthew McDonnell's discussion Create array of Vectors from input Points.
"Thanks David,   Yes I noticed the 'As Object' a little bit later after I posted my question.   I managed to get it working but needed to 'Dim i As Int32 = 0' (not as integer)... Is working fine now but not sure what the…"
Jun 10, 2011
David Rutten replied to Matthew McDonnell's discussion Create array of Vectors from input Points.
"ByVal PtStart As List(Of Object)   this looks a bit icky, shouldn't that be List(Of Point3d)?   This is how I'd write that loop:   Dim rays As New List (Of Vector3d)For i As Integer = 0 To PtStart.Count - 1  …"
Jun 9, 2011

Profile Information

Company, School, or Organization
Ditinn
Web or Blog
http://www.ditinn.net

Comment Wall

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

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service