I trying do create this points with Python Script, but when i Run the script get this error mensage:
#Load the Python Standard and DesignScript Libraries *import sys* *import clr* *import System* *clr.AddReference('ProtoGeometry')* *from Autodesk.DesignScript.Geometry import ** #The inputs to this node will be stored as a list in the IN variables. *xi = IN* *yi = IN* *zi = IN* *xf = IN* *ex = IN* *count = xf/ex* *list = [Point.ByCoordinates(xi,yi,zi)]* #Place your code below this line *while count > 0:* *IN += ex* *list.append(Point.ByCoordinates(IN,yi,zi))* *count -= 1* #Assign your output to the OUT variable. *OUT = list*
What i wanna do is create lines to be used for a Grid. I want the user to inform the start element, the X and Y size of the Grid and spacing of each point in X and Y. To do this i think about getting the center point os the element and creating points to create line and then creating Grid with this lines.