I added a official discussion on this topic above since it is an interesting one that deserves more discussion. I see some interesting potential to evolve this functionality... I don't have an immediate answer, but please re-post there and I will revisit later on.
Nathan, thanks for the great tools. I have a question about attractor. Why points located in one place (verticels of Voronoi cells) are different transformed. I believed that superposition of forces of attractor in each point of space is equal(i hope you understand my english).
You are using the attactor on the corners of the voronoi cells. Each corner will be transformed (in your case 'moved' inward) differently because each corner is located at a different position relative to the attractor point.
If you want an even transformation of cells (such as a scaling operation), you could use the center of each cell as your target points for the attractors.
The component should accept any format available through normal export. Basically it uses Rhino.Command to automate Baking and Exporting through the command line. Objects on the baked layer get deleted after export (so be careful)
I tested SAT so you should have no problem (let me know if you do)
There is a small problem. At the big difference of curvature along a surface distribution of UV parameters strongly non-linear and panels turn out different size.
I have made definition with your tools which almost solves this problem, but it a little bulky and panels as a result turn out as the trimmed surfaces. While works only with three kinds of panels.
I have a question. Whether probably to add in your tools option like as "linearize UV" or "remap UV"?
System.Runtime.InteropServices.COMException (0x800A03EC): Exeption in HRESULT: 0x800A03EC I thought it couse exel file is too long but now it is doing the same with any exel file... (what is the max size, actually? can I use some tricks to upload really huge file, about 10 000 or 100 000 lines?)
I have had this before and it usually has something to do with having other processes running that are using System.Runtime.InteropServices... such as having multiple workbooks open or another application. You might need to restart your open programs (or computer). I don't think file size is the issue although I can't be sure since I'm usually not working with excel files that large.
Hi Nathan...I've been riding the read/write excel, save and bake components in lunch box pretty hard and to fantastic effect in my workflow lately (and the various other goodies in my playflow)...so first and foremost: thanks! One thing I've noticed though is that the bake component doesn't take points...it has a casting problem going from point to geometrybase. Is this something you're aware of?
Thanks! Yes I am aware that the casting problem there with GeometryBase. Oddly enough, the exact same source code accepts points and other objects when placed in a scripting component. For whatever reason, it gets fussy when made as a plug-in. Not sure what the deal is.
I have a couple of workarounds in mind based on some lessons learned in the newer Slingshot! components. I had to do some casting gymnastics for the serialization components to get them to handle certain geometries. I'll try and circle back and implement them here soon.
Following up on the comments below, is there a temporary solution to the problem of baking points? I'm also having problems baking circles. But I think the solution would probably be to convert them to curves and then bake them.
Thank you for your message and for your hard work on these components. We will wait as long as it is necessary for your next awesome update. I hope your move goes well :)
I'm having issues with trying to design a diagrid for this model surface. I have attached a .pdf and .jpg image of the draped surface.
1. I used a "draped surface" to design the surface for the diagrid definition and then trimmed it to my desired specifications. However, the definitions I've found don't confine themselves to the parameters of the surface, they continue to the extents of original untrimmed surface. Is there a definition that will confine themselves and "fit" to the parameters of this newly edited surface?
2. I am trying to get a diagrid that will bake only the structural grid of the diagrid and then the glass component separately. I will be rendering this later and I need both components to be distinct of one another.
Please help, I am running out of time, I have been freaking out trying to figure this out and I have found nothing that helps my project. I've searched and found different definitions, tampered with them to fit my project and yet to no avail.
I am still learning this plug-in and I enjoy it's functions, PLEASE HELP!!!
I've been working with Lunchbox with the latest release of the Rhino 5 beta (64-bit) in Grasshopper 0.9.006 and have run across a rather confusing problem.
When I bake a set of curves to a set of layers, I get duplicate geometry.
Running undo within Rhino ('Undo Grasshopper Solution') removes the duplicate geometry. Also, the baked geometry is always precisely twice the number of input objects. These two factors taken together, it would seem like it is executing the bake twice. Still, I can't figure out why this would be the case. Any thoughts? (Definition and template file attached)
This definition with the current release of LunchBox was working perfectly in Grasshopper 0.8.0066. It's only since upgrading to 0.9.0006 that I've found this issue. Thanks in advance for any help you might be able to offer.
This is rather perplexing to me as well. I am only able to repeat the problem within your file. If I set up a similar bake system in any new file (re: list of objects, list of layers) in v0.9006, it behaves as expected... only your file seems to be giving this trouble. Have you upgraded to the newest version of LunchBox also?
I'm running the most current version of LunchBox. I've had trouble reproducing the error in new files as well. On the bright side, the issue is more of an annoyance than catastrophic.
i'm using the read open excel file to read a CSV file, and i get notice that when the CSV file have empy value in some of the tabs the commponent trim this and my branch list have sometimes all the item index and sometime less index than the desire cuz the empty index are trimed, thats an error of the component or what ?
Hej Nathan, I somehow have problems naming the geometry I want to save with lunchbox. Its always called " .obj " or " .3ds ", depeding on the format of course. I tried both panels and strings for the name input. None of them works.
Hey Nathan!, I think I've found a bug: the bake component is not able to bake "line" geometry, you need to convert it to Curves. Hope this helps :) Thanks for the plugin and awesome work.
The read/write excel components aren't working for me. They were working even yesterday, but today I get this error:
System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) at LunchBox.WF_ExcelRead.SolveInstance(IGH_DataAccess DA)
when using the excel read (legacy), i get this error:
{0;0} 0. System.Runtime.InteropServices.COMException (0x800401E3): Vorgang nicht verfügbar. (Ausnahme von HRESULT: 0x800401E3 (MK_E_UNAVAILABLE)) bei System.Runtime.InteropServices.Marshal.GetActiveObject(Guid& rclsid, IntPtr reserved, Object& ppunk) bei System.Runtime.InteropServices.Marshal.GetActiveObject(String progID) bei LunchBox.WF_ExcelRead.SolveInstance(IGH_DataAccess DA)
Thanks for all of the continued interest. To be honest, I haven't been keeping tabs on this group as much as I would like since I've started my new business.
I have released a new version of LunchBox over at Food4Rhino that you might be interested in checking out. The new version is provided as a ClickOnce installer as well as a ZIP file containing the latest plugin files. Hopefully by providing both it is easier for everyone to get up and running.
I am trying to write a script that tesseltes regular hexagons across a surface using the hexagon cells panel. So that no matter the input surface/rectangles dimensions- those hexagons are as close to regular as possible. I know that the width-to-height ratio of a hexagon resting on a side is 2*sqrt(3)/3 (to calculate number of U to v tiling) but I fail to understand the t-parameter and I'm unable to attain the regular hexagons. Can you help?
System.NullReferenceException: Object reference not set to an instance of an object. at Grasshopper.Kernel.GH_Component.GH_StructureIterator.SetDataTree(Int32 index, IGH_DataTree tree) in C:\dev\grasshopper\1.0\root\src\GH_StructureIterator.vb:line 1296 at LunchBox.WF_ExcelReadNew.SolveInstance(IGH_DataAccess DA)
I installed Lunchbox and the only tab that shows up in Machine Learning, all the other tools aren't there. I've tried uninstalling it and reinstalling but it doesn't change. Using windows 10
Nathan Miller
Mohammad,
I added a official discussion on this topic above since it is an interesting one that deserves more discussion. I see some interesting potential to evolve this functionality... I don't have an immediate answer, but please re-post there and I will revisit later on.
-Nathan
Mar 12, 2012
Igor
Nathan, thanks for the great tools. I have a question about attractor. Why points located in one place (verticels of Voronoi cells) are different transformed. I believed that superposition of forces of attractor in each point of space is equal(i hope you understand my english).
LunchBox_Attractor.gh
Mar 25, 2012
Nathan Miller
Hello Igor,
You are using the attactor on the corners of the voronoi cells. Each corner will be transformed (in your case 'moved' inward) differently because each corner is located at a different position relative to the attractor point.
If you want an even transformation of cells (such as a scaling operation), you could use the center of each cell as your target points for the attractors.
see attached....
-Nathan
LunchBox_Attractor_NM.gh
Mar 25, 2012
Rotring
I can't download the lunchbox!!
could you send lunchbox to my email!!thanks a lot!!
fatiaorenlei@gmail.com
Mar 25, 2012
Nathan Miller
Zhu Na:
There are two locations for downloading
My Wiki: http://theprovingground.wikidot.com/tpg-plugin-download
and
Food4Rhino: http://www.food4rhino.com/project/lunchbox
Mar 26, 2012
Jacopo Baldini
Hello,
I'm trying to make a freeform surface from a base plane surface like the link below:
http://www.grasshopper3d.com/xn/detail/2985220:Topic:556541?xg_sour...
I would like to have a final result for manage the surface like this link:
http://vimeo.com/37360469
I uploaded the definition and the .3dm file could someone tell me how to improve and fix it?
Cheers....
freeform_from_planar_jacko.3dm
freeform_from_planar_jacko.gh
Mar 27, 2012
fernando molas garcia
It is admirable the work of people like you. helps simplify the work and thinking about new challenges
Mar 27, 2012
jaime tellado alvarez
http://www.grasshopper3d.com/forum/topics/using-lunch-box, the link is a discussion about how to convert lines from a structure grid made with lunchbox into elements of rectangular section
Mar 27, 2012
fernando molas garcia
Other formats supported by the component save? I'm using revit and I get along with the *. Sat.
Mar 27, 2012
Nathan Miller
Fernando,
The component should accept any format available through normal export. Basically it uses Rhino.Command to automate Baking and Exporting through the command line. Objects on the baked layer get deleted after export (so be careful)
I tested SAT so you should have no problem (let me know if you do)
-Nathan
Mar 27, 2012
Igor
Hello Nathan,
Once again thanks for fine tools.
There is a small problem. At the big difference of curvature along a surface distribution of UV parameters strongly non-linear and panels turn out different size.
I have made definition with your tools which almost solves this problem, but it a little bulky and panels as a result turn out as the trimmed surfaces. While works only with three kinds of panels.
Best regards
Definition Uniform_Panels.gh
Mar 30, 2012
YunXiang Wang
Thanks you , Miller nice to see you again O(∩_∩)O~
May 27, 2012
YunXiang Wang
This is nice plugins, god ,you are the author . Thank you for your sharing
May 27, 2012
Philipp
Instantly Lanchbox began to write this message:
System.Runtime.InteropServices.COMException (0x800A03EC): Exeption in HRESULT: 0x800A03EC
I thought it couse exel file is too long but now it is doing the same with any exel file... (what is the max size, actually? can I use some tricks to upload really huge file, about 10 000 or 100 000 lines?)
Jun 9, 2012
Nathan Miller
Philipp,
I have had this before and it usually has something to do with having other processes running that are using System.Runtime.InteropServices... such as having multiple workbooks open or another application. You might need to restart your open programs (or computer). I don't think file size is the issue although I can't be sure since I'm usually not working with excel files that large.
-Nate
Jun 10, 2012
David Stasiuk
Hi Nathan...I've been riding the read/write excel, save and bake components in lunch box pretty hard and to fantastic effect in my workflow lately (and the various other goodies in my playflow)...so first and foremost: thanks! One thing I've noticed though is that the bake component doesn't take points...it has a casting problem going from point to geometrybase. Is this something you're aware of?
Jun 10, 2012
Nathan Miller
Hey David,
Thanks! Yes I am aware that the casting problem there with GeometryBase. Oddly enough, the exact same source code accepts points and other objects when placed in a scripting component. For whatever reason, it gets fussy when made as a plug-in. Not sure what the deal is.
I have a couple of workarounds in mind based on some lessons learned in the newer Slingshot! components. I had to do some casting gymnastics for the serialization components to get them to handle certain geometries. I'll try and circle back and implement them here soon.
Cheers,
-Nate
Jun 10, 2012
Ali Nayeri
Hi Nathan,
Following up on the comments below, is there a temporary solution to the problem of baking points? I'm also having problems baking circles. But I think the solution would probably be to convert them to curves and then bake them.
Thanks for a great set of components!
Bests,
Ali
Jun 11, 2012
Nathan Miller
Ali,
I'll try to get a fix out soon. I'm in the middle of a move right now so I won't have much time to push out another update for a few weeks.
In the meantime, here is VB script implementation of the same component which will work with points.
BakeSource.gh
-Nate
Jun 12, 2012
Ali Nayeri
Hi Nathan,
Thank you for your message and for your hard work on these components. We will wait as long as it is necessary for your next awesome update. I hope your move goes well :)
Bests,
Ali
Jun 13, 2012
Philipp
Is there any chance to teah http read cyrillic letters or decode the result into cyrillic afterwards? (inside or outside grasshopper?)
Aug 1, 2012
sim odu
Hello all,
I'm having issues with trying to design a diagrid for this model surface. I have attached a .pdf and .jpg image of the draped surface.
1. I used a "draped surface" to design the surface for the diagrid definition and then trimmed it to my desired specifications. However, the definitions I've found don't confine themselves to the parameters of the surface, they continue to the extents of original untrimmed surface. Is there a definition that will confine themselves and "fit" to the parameters of this newly edited surface?
2. I am trying to get a diagrid that will bake only the structural grid of the diagrid and then the glass component separately. I will be rendering this later and I need both components to be distinct of one another.
Please help, I am running out of time, I have been freaking out trying to figure this out and I have found nothing that helps my project. I've searched and found different definitions, tampered with them to fit my project and yet to no avail.
I am still learning this plug-in and I enjoy it's functions, PLEASE HELP!!!
Thanks,
Sim
Aug 1, 2012
Nicky
hi Nathan, thank you for amazing tools.i love it.
I use lunchbox that had a small error..(Swiss Re)
similar to other components:
result
other view..it's ok.
I hope for your help to better..thanks...
Aug 6, 2012
Nathan Miller
Try setting the division parameter to an even number.
-Nate
Aug 6, 2012
Nicky
thank Nathan .. it's really simple that I could not think of .. great.
Aug 6, 2012
Patrick Delorey
Hello Nathan,
I've been working with Lunchbox with the latest release of the Rhino 5 beta (64-bit) in Grasshopper 0.9.006 and have run across a rather confusing problem.
When I bake a set of curves to a set of layers, I get duplicate geometry.
Running undo within Rhino ('Undo Grasshopper Solution') removes the duplicate geometry. Also, the baked geometry is always precisely twice the number of input objects. These two factors taken together, it would seem like it is executing the bake twice. Still, I can't figure out why this would be the case. Any thoughts? (Definition and template file attached)
This definition with the current release of LunchBox was working perfectly in Grasshopper 0.8.0066. It's only since upgrading to 0.9.0006 that I've found this issue. Thanks in advance for any help you might be able to offer.
Definition: 20120809RoofGridTool.gh
Template: RoofGridTemplate.3dm
Aug 9, 2012
Nathan Miller
Patrick,
This is rather perplexing to me as well. I am only able to repeat the problem within your file. If I set up a similar bake system in any new file (re: list of objects, list of layers) in v0.9006, it behaves as expected... only your file seems to be giving this trouble. Have you upgraded to the newest version of LunchBox also?
-Nate
Aug 9, 2012
Patrick Delorey
Nathan,
I'm running the most current version of LunchBox. I've had trouble reproducing the error in new files as well. On the bright side, the issue is more of an annoyance than catastrophic.
Aug 9, 2012
Philipp
A small wish - please make bake component workable with groups..,
Also It will be really nice to work with google spreadsheets as with exel tables
Aug 15, 2012
Philipp
id it possible to make a picture frames with a command line node?
Oct 9, 2012
Toussaint Jimenez Rojas
i'm using the read open excel file to read a CSV file, and i get notice that when the CSV file have empy value in some of the tabs the commponent trim this and my branch list have sometimes all the item index and sometime less index than the desire cuz the empty index are trimed, thats an error of the component or what ?
Nov 24, 2012
feliks kristman
Hej Nathan, I somehow have problems naming the geometry I want to save with lunchbox. Its always called " .obj " or " .3ds ", depeding on the format of course. I tried both panels and strings for the name input. None of them works.
thx in advance,
feliks
I'm running rhino5 32 bit, win7pro 64bit
Dec 14, 2012
Ángel Linares
Hey Nathan!, I think I've found a bug: the bake component is not able to bake "line" geometry, you need to convert it to Curves. Hope this helps :) Thanks for the plugin and awesome work.
Mar 1, 2013
pipi
Dear,How to bake lines?
Mar 25, 2013
Dario
Dear Nathan/ group,
do you have any idea how to resolve this error using the Excel Write component?
thanks in advance
error%20LunchBox.jpg
Jun 3, 2013
Dino Eicher
amazing tool! Thankx a lot for sharing it!
Apr 7, 2014
martyn hogg
Should Lunchbox work with GH 0.9.0076 ?
I ran the installer but no Lunchbox toolbar appears when I open GH.
Thanks
Sep 13, 2014
Valentin
Very good work Nathan!
Oct 23, 2014
Paresh
how the flatness check tool works?? any one can guide please??
Dec 19, 2014
Alessandro Guidetti
hi guys,
I am searching a pdf guide for lunch box. Does anyone know where I can find it??
Thankssssss in advance!!!!
Jan 27, 2015
spiral
all cells are equal length sides, the different lengths between points horizontally, do not know how to make a definition for such a mesh, please help
Mar 31, 2015
Mo Harmon
The read/write excel components aren't working for me. They were working even yesterday, but today I get this error:
System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC
at Microsoft.VisualBasic.CompilerServices.LateBinding.LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack)
at LunchBox.WF_ExcelRead.SolveInstance(IGH_DataAccess DA)
Any thoughts? Thanks!
Jul 9, 2015
Masood
Hi, can anyone see my discussion(a bout Lunchbox) here
it is about random quad panels which go out of the base surface around corners?
ps: is this a right place to ask this or not?
tanx
Nov 9, 2015
bea franko
when using the excel read (legacy), i get this error:
{0;0}
0. System.Runtime.InteropServices.COMException (0x800401E3): Vorgang nicht verfügbar. (Ausnahme von HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))
bei System.Runtime.InteropServices.Marshal.GetActiveObject(Guid& rclsid, IntPtr reserved, Object& ppunk)
bei System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
bei LunchBox.WF_ExcelRead.SolveInstance(IGH_DataAccess DA)
any ideas?
thank you!
Nov 26, 2015
Nathan Miller
Dear all,
Thanks for all of the continued interest. To be honest, I haven't been keeping tabs on this group as much as I would like since I've started my new business.
I have released a new version of LunchBox over at Food4Rhino that you might be interested in checking out. The new version is provided as a ClickOnce installer as well as a ZIP file containing the latest plugin files. Hopefully by providing both it is easier for everyone to get up and running.
Enjoy!
-Nate
Mar 21, 2016
jens jacob jul christensen
hey,
I am trying to write a script that tesseltes regular hexagons across a surface using the hexagon cells panel. So that no matter the input surface/rectangles dimensions- those hexagons are as close to regular as possible. I know that the width-to-height ratio of a hexagon resting on a side is 2*sqrt(3)/3 (to calculate number of U to v tiling) but I fail to understand the t-parameter and I'm unable to attain the regular hexagons. Can you help?
best
Apr 6, 2017
Jim Marsh
Has anyone used the new machine learning components? I don't really know where to start with them, but I want to learn.
Aug 13, 2017
Andrew Schiffer
Having a problem with the excel read component.
I get this error message...
System.NullReferenceException: Object reference not set to an instance of an object.
at Grasshopper.Kernel.GH_Component.GH_StructureIterator.SetDataTree(Int32 index, IGH_DataTree tree) in C:\dev\grasshopper\1.0\root\src\GH_StructureIterator.vb:line 1296
at LunchBox.WF_ExcelReadNew.SolveInstance(IGH_DataAccess DA)
why and how to fix...
Oct 18, 2017
Madeline Spinski
I installed Lunchbox and the only tab that shows up in Machine Learning, all the other tools aren't there. I've tried uninstalling it and reinstalling but it doesn't change. Using windows 10
Feb 17, 2018
Sergey Dmitriev
Run with Rhino64
Mar 12, 2018