- 100.
After that, I want to separate it into 5 different lists in spesific thickness.
in this case of 0-100 so it would be :
1. if the distance 0 - 20 then the thickness is 5
2. if the distance 21 - 40 then the thickness is 10
3. if the distance 41 - 60 then the thickness is 15
4. if the distance 61 - 80 then the thickness is 20
5. if the distance 81 - 100 then the thickness is 25
But, the problem is the list of distance isn't static between 0-100. It could be 5 - 250 / 3.5-175/etc.....
Could you help me how to make the expression?? Is this possible if I make one expression?
thank you.
Z.
nb: distance and thickness hasn't mathematical relation.…
Added by ZAQI FATHIS at 8:43am on November 27, 2013
}
X*
{0;2;0}{0;2;1}{0;2;2}{0;2;3}
{0;3;0}{0;3;1}{0;3;2}{0;3;3}
And now we want to insert at the place marked with X* another list formated like:
{0;0}{0;1}{0;2}{0;3}
So we want it resulted like:
{0;0;0}{0;0;1}{0;0;2}{0;0;3}
{0;1;0}{0;1;1}{0;1;2}{0;1;3}
*{0;2;0}{0;2;1}{0;2;2}{0;2;3}* - the inserted list
{0;3;0}{0;3;1}{0;3;2}{0;3;3}
{0;4;0}{0;4;1}{0;4;2}{0;4;3}
Since we plug the list formated with only {A;B} into the place with has {A;B;C} then that list has to be reformated in the same manner and every lists which are next to it have to be reformated too by adding 1 to B so it's {A;B+1;C}.
Param viewer with the data tree diagram is a great tool for visualising data structure. It seems to me that it would be easier to play with lists in the same way as we do with connecting components together. So if we have list of points and we want to insert them at some certain place in the tree then we don't need to play with Patch Mapper, Insert List and others but we just plug them on one go into the tree and format will adopt itself automaticly according to the choicen position on the tree.
Same with OUTPUT. We can pick some elements from the tree and connect it to the component which will receive every element from that branch. (example):There is a list of points with complex data structure. we pick node {0;0;3} and move it out from param viewer to connect it with point component which will receive all the sublists with elements which are under it:
{0;0;3;0}0 - pt1 - pt2 - pt{0;0;3;1}0 -pt1 - pt2 - pt3 - pt...and so on...
I don't know if this solution make better sense then other solutions of this case. Maybe there are easier ways to do it without such complication and I have no idea about it :)
greets!
Adam
…
test it, this error comes up:
"Runtime error (NullReferenceException): Object reference not set to an instance of an object.
Traceback: line 12, in patch_them, "<string>" line 21, in helper, "C:\Users\Jsoe\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\ghpythonlib\parallel.py" line 25, in run, "C:\Users\Jsoe\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\ghpythonlib\parallel.py" line 24, in script"
Would you happen to know why its not working? I tried all the other codes that have this python script and none of them work.
Thank you in advance.
Jessica
…
Paneling Tools tab appears on the interface.
I am running the latest version of Rhino 5 64-bit (5.1.2012.508, 05/08/2012), the latest Grasshopper (build 0.80066) and the latest PT version ( 03 May 2012) on a Windows 7 64-bit system.
Could you please help?
Rafael…
Am I missing something. I've reduced the problem down to a simple 2 x 2 lines to rule out sorting them and I'm still getting an error.
This command works fine in Rhino 5 version 5.1.2012.314
following method:
OnXform::Scale Method (IOn3dPoint^, double)
But I have no idea how to go about it... I tried cooking up something looking at some other codes and have the following non-working example so far:
---------------------------------------------------------
Private Sub RunScript(ByVal crv As List(Of OnCurve), ByVal pt As On3dPoint, ByVal enable As Boolean, ByRef A As Object)
If (Not Enable) Then Return
Dim scale As New OnXform
scale.Scale(pt, "1000")
For Each curve As OnCurve In crv
curve.Transform(scale)
Next
A = curve
---------------------------------------------------
I will appreciate any help... Thank you!…
Added by Sameer Kumar at 1:59pm on November 11, 2009
inition loaded.
It supports to be like this:
0-20 : true
from 21 : false
but this is what I get:
0-1 : true
2-10 : false
11-20 : true
from 21 : false
I have no clue what is happening to value 2-10?
Even trying component ‘expression’ the problem still the same.
Does anyone know where the problem is?
…
Added by Jon to Kangaroo at 4:52am on September 27, 2017