Grasshopper

generative modeling for Rhino

Larry Boxler
  • Male
  • Oskaloosa, IA
  • United States
Share on Facebook
Share Twitter

Larry Boxler's Groups

Larry Boxler's Discussions

Unitize a vector
5 Replies

Started this discussion. Last reply by David Rutten Jan 24, 2012.

Running Excel Macro from VB Component
1 Reply

Started this discussion. Last reply by Larry Boxler Oct 27, 2011.

 

Larry Boxler's Page

Latest Activity

Larry Boxler posted a discussion

Read File Component Time to Read File

I am using the read file component to read in a text file (Grashopper Version 0.8.0066).  I originally had the text file on the local hard drive and it only takes the component a few milliseconds to complete.  However the files recently moved to a network drive and it now takes 4 minutes to complete (according to the profiler).  It is a very small (2kb)  text file and opens up in a program like notepad very quickly from the network location.  Is there something about the component function that…See More
Aug 15, 2012
Larry Boxler replied to djordje's discussion What is your profession?
"Optical Engineer working on lighting design"
Jun 29, 2012
Larry Boxler liked Benjamin Golder's video
Jan 27, 2012
David Rutten replied to Larry Boxler's discussion Unitize a vector
"Ideally value types should not have methods that change the type variables. Ideally Unitize() should return a unitized vector rather than changing the xyz values of the vector itself. However we decided to not adhere to this guideline for…"
Jan 24, 2012
Larry Boxler replied to Larry Boxler's discussion Unitize a vector
"Thank you for explaining that the .Item() call returns a copy.  Explains why the .length property call worked in the previous line for what I was using it for and the .Unitize() method didn't work, which was why I was so confused.…"
Jan 24, 2012
David Rutten replied to Larry Boxler's discussion Unitize a vector
"Vectors are value types, when you call: S_MidVector.Item(i), you get a copy of the vector that's inside the list. Unitizing this copy won't affect the original vector. What you need to do: Dim vec As Vector3d =…"
Jan 24, 2012
Larry Boxler replied to Larry Boxler's discussion Unitize a vector
"I did try that, but the vectors don't come out Unitized.  The component output still has the initial length vectors. "
Jan 23, 2012
raf2205 replied to Larry Boxler's discussion Unitize a vector
"just do  S_MidVector.Item(i).Unitize() instead of   S_MidVector.Item(i) = S_MidVector.Item(i).Unitize() ;)"
Jan 23, 2012
Larry Boxler posted a discussion

Unitize a vector

I have the following code in a grasshopper VB.Net Script component:  Private Sub RunScript(ByVal S_Vector As List(Of Vector3d), ByRef S_Mid As Object) Dim S_MidVector As New List(Of Vector3d) Dim i As IntegerFor i = 0 To S_Vector.Count - 2     S_MidVector.Add((S_Vector.Item(i) / S_Vector.Item(i).length) + (S_Vector.Item(i +_                  1) /S_Vector.Item(i + 1).length))     S_MidVector.Item(i) = S_MidVector.Item(i).Unitize() NextS_Mid = S_MidVectorEnd SubI get an error saying that type…See More
Jan 23, 2012
Larry Boxler replied to Larry Boxler's discussion Running Excel Macro from VB Component
"I found the answer in an older post.  You can use the following to turn off the error:    Rhino.Runtime.HostUtils.DisplayOleAlerts(False)"
Oct 27, 2011
Larry Boxler posted a discussion

Running Excel Macro from VB Component

I have a VB script component that opens an excel spreadsheet, populates some cells with data and then calls a macro to run.  This all works fine except that I get a warning box with the following message a few seconds into the macro running on excel (the excel macro isn't complete yet when the message comes up, but does continue to completion).  …See More
Oct 25, 2011
Larry Boxler replied to Larry Boxler's discussion VB.net component using Solid Intersect function
"Hi David,    Thanks for reply and explanation.   I was thinking that RhinoCommon was only for V5 and I am still using grasshopper with V4.  However after checking the RhinoCommon wiki page, I realized the implementation in…"
Aug 3, 2011
David Rutten replied to Larry Boxler's discussion VB.net component using Solid Intersect function
"Hi Larry,   it's been so long since I used the Legacy SDK that I'm totally rusty. Any reason you can't switch to RhinoCommon?   To answer your question, an OnBrep is an IOnBrep. IOnBrep is an interface, OnBrep is a class…"
Aug 2, 2011
Larry Boxler posted a discussion

VB.net component using Solid Intersect function

I am trying to write a vb.net component (using the vb.net compatibility version of the component) that does the solid intersection function.  I am having trouble understanding how to take the input Breps and convert them to IOnBreps for use in the RhinoBooleanIntersection command.  Below is my code so far:    Private Sub RunScript(ByVal BR1 As OnBrep, ByVal BR2 As OnBrep, ByRef A As Object) Dim bresult As Boolean = False'Code here to take BR1 and BR2 and create IOnBreps to pass to boolean…See More
Aug 2, 2011
Larry Boxler replied to kimu's discussion Help needed....math problem
"I dont have the chops to work out the math, but here's an idea that you may not have tried yet for an analytical formulation.  Since you are finding the bisector here, the problem is analogous to a reflection problem for light…"
Apr 7, 2011
Larry Boxler joined David Rutten's group
Thumbnail

Galapagos

Galapagos Evolutionary Solver
Feb 22, 2011

Profile Information

Company, School, or Organization
NA

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