nput parameter and then set the named values on the second?
protected override void BeforeSolveInstance() { Param_Integer param0 = Params.Input[0] as Param_Integer; Param_Integer param1 = Params.Input[1] as Param_Integer; param1.ClearNamedValues();
GH_Structure<GH_Integer> data = param0.VolatileData as GH_Structure<GH_Integer>; if (data.IsEmpty) return; foreach (GH_Integer value in data.AllData(true)) { switch (value.Value) { case 1: param1.AddNamedValue("First option for 1", 11); param1.AddNamedValue("Second option for 1", 12); param1.AddNamedValue("Third option for 1", 13); break;
case 2: param1.AddNamedValue("First option for 2", 21); param1.AddNamedValue("Second option for 2", 22); param1.AddNamedValue("Third option for 2", 23); break;
case 3: param1.AddNamedValue("First option for 3", 31); param1.AddNamedValue("Second option for 3", 32); param1.AddNamedValue("Third option for 3", 33); break; } return; } }
--
David Rutten
david@mcneel.com…
Added by David Rutten at 1:56am on December 18, 2013
ll these 12500 points.
Group 1 would represent the point located at 0, 5, 10, 15, 20 etc.
Group 2 - 1, 6, 11, 16, 21 etc.
Group 3 - 2, 7, 12, 17, 22 etc.
Group 4 - 3, 8, 13, 18, 23 etc.
Group 5 - 4, 9, 14, 19, 24 etc.
I can create the pattern but the selection of points are all the points in row 0 and then all the points in row 5 and so on.
I would like the selection of points to start at the bottom left, and sequentially continue to the right and then continue on the 2nd row (left to right & bottom to top). i am hoping the pattern i am trying to achieve is more understood with the quick screen capture I uploaded.
the end goal is to be able to select all the points in the grid that are in each pattern.
Thanks in advance for any guidance with this. …
Added by Alyne Rankin at 6:53am on October 11, 2017
e range of materials, including heavy-duty fabrics. They offer a range of embroidery machines that cater to different needs and budgets.best embroidery machine for custom designs…
to make a lot of problems when you divide second set of curves because everything is counted double times.
the target is to find the right way to list items directly linked with u/v divisions.
check the number of items you have after dividing the srf.
by the way thank you for your interest.…
nique name like in your example {0;0},{0;1},{0;2},{0;3} where each path contains 11 elements(curves,points,values,etc)
so if you want to restructure the structure first right click on path mapper and take create null mapping which reads your current path structure into the component
after that you can additional write on the left side to the existing path (i) as variable for the elements and then on the right side type in the structure you want to achieve
maybe {A;i}(B) so after that you have 11 paths where each have 3 elements
hope that helps…
here are 11 numbers (0 to 10), and a 'step' of 42 (0 to 42 to 84), and I need to be able to 'cap' the number of times the 11 numbers are added, for example 3 for the list above.
I'm sure this is simple, and I'm kicking myself that I can't figure it out for myself, so any help would be greatly appreciated!…