one function

</pre><p>import rhinoscriptsyntax as rs</p><p>def functionMultipleOutput():<br /> result1 = "this is the first output"<br /> result2 = [1,1,1]<br /> result3 = [result1, result2]<br /> result4 = None<br /> allresult = [result1, result2, result3, result4]<br /> return allresult<br />functionMultipleOutput()</p><pre>

</pre><p>import rhinoscriptsyntax as rs</p><p>def MakePoints():<br /> Pt1 = [0,0,0]<br /> Pt2 = [1,2,3]<br /> Points = [Pt1, Pt2]<br /> rs.AddPoints(Points)<br /> return Points<br />MakePoints()</p><p>myList = MakePoints()<br />print myList</p><p>def MakeALine(myList):<br /> a = myList[0]<br /> b = myList[1]<br /> rs.AddLine(a,b)<br />MakeALine(myList)</p><pre>

About these ads
This entry was posted in Assignments. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s