Exercise 1: Python Batch Program

The objective of this exercise is to create a Python Batch program that generates a simple array of a 3D object.

#this links python to rhino
import rhinoscriptsyntax as rs

#this prompts user to select desired object to array
rs.SelectObjects

#Array = Number in X Direction _ Number in Y Direction _ Number in Z Direction _ Spacing in X _ Spacing in Y Direction _ Enter
rs.Command ("selall")
rs.Command ("Array 5 5 1 12 14 enter")

#end

Leave a Reply

Your email address will not be published. Required fields are marked *