@alexdell wrote:
Hi everybody,
I'm not an expert in programming with python and I would like to know the procedure to overwriting a layer with some lines, after I run again the script. Otherwise, every time I will modify the reference surfaces I will have always new lines.Thank you
AleThis is my script for now:
import rhinoscriptsyntax as rs import Rhino.Geometry as rg surface_base = rs.GetObject('Select the base surface') surface_top = rs.GetObject('Select the top surface') points1 = rs.SurfaceEditPoints(surface_base) points2 = rs.SurfaceEditPoints(surface_top) for point in points1: base_points = rs.AddPoints(points1) for point in points2: top_points = rs.AddPoints(points2) for point1 in points1: for point2 in points2: lines = rs.AddLine(point1,point2) rs.ObjectLayer(lines,'dummy')
Posts: 2
Participants: 2