ception): invalid literal for float(): Traceback: line 2529, in createOSStanadardOpaqueMaterial, "<string>" line 2709, in getOSMaterial, "<string>" line 2750, in getOSConstruction, "<string>" line 2824, in opsZoneSurface, "<string>" line 3589, in main, "<string>" line 3689, in script
Which i believe is related to my own defined constructions.
What can be done?
Thanks,
-A.…
my technical challenge.
Is it possible to define a SDL line where the direction and the start/end points are not yet defined?
In the attached GH file, I’m hoping I can place a line somewhere on the path of a circle based on the length of the line. So if I make the line longer, the ends should slide out along the circles.
I should say that using circles are not required, as an ARC would work just fine for my application. In the end, I would like to be able to slide the SDL line laterally (using a slider input) and allow each end of the line to follow different locations along the circle/arc.
I hope my intent is clear as I’ve been trying to solve this one for over 2 weeks.…
separated curves and given that the upper one lies within the shape of the lower one. That is a perpendicular drawn from any point on the upper curve will lie within the lower one.
2. Extrude a surface from the lower line to some Z above the upper line.
3. Divide the upper curve.
4. Draw a line from each point on the upper curve perpendicular to a tangent (XY) at that point and extend it so that it intersects the extruded surface from the lower line. One could also just copy the lower curve and make the copy coplanar this the upper. (I'm not sure whether this will cause some funniness with some geometries but at this point who cares).
5. Drop a line from the intersection of the line and surface (or curve) to the lower Curve.
6. Draw a line from the originating point on the upper curve to the intersection point on the lower curve.
Whew. Does this make sense to you?…
thod to this one:
Dim EndPointA As Point3d = startLine.To + VectorA
Then use the plane for my circle.
This is my code:
Dim LineA As line LineA = New Line(pt1, pt2) 'Here i wish to make a plane from the endpoint 'Of the New line (LineA) And use the New plane For the circle below
circlelist.Add(New Rhino.Geometry.Circle(lnIn, 2)) linelist.Add(LineA)
Also if you know any good sites for finding vb, sdk, gh code please share some, i know programming but fail to find the specific grammar.
Thanks!
f…
Hi RG,
please have a look here:
http://www.grasshopper3d.com/forum/topics/vb-line-between-points-or-sdl
- Giulio
_____________________
giulio@mcneel.com
McNeel Europe, Barcelona
just one more question:
If particular component requests for "Line" input, does this mean that I can use "Curve" parameter instead of "Line" parameter?
Hi Balazs,
you need to flatten the line input to the Line to Beam component otherwise it keeps all the lines in the branch structure and therefore you have more nodes that you expected.
best,Matthew
Hi, Thanks for the suggestion, but how to use that in a line! I am new to Grasshopper API and I am learning bits by bits.
Will the line be in a custom display.?
Can you please help me with it!