Hi,
I am still getting slightly confused I can get the following output from my script
import rhinoscriptsyntax as rs
objectIds = rs.GetObjects(“Pick measured points”, rs.filter.point)
#for id in objectIds: print “Object identifier:”, id
for id in objectIds:
objectname = rs.ObjectName(id)
if objectname == “None”:objectname== “No Name”
objectcoord = rs.PointCoordinates(id)
print objectname,",",objectcoord
3 , -170.746075173116,200.24702273105,-23.3611932323999
2 , -181.501607487389,15.6103846693673,-23.3611932323999
1 , -260.37551112539,-149.307777482816,-23.3611932323999
No name , -56.0203971542065,-215.633560087498,-23.3611932323999
No name , 196.734612231204,-228.181681120816,-23.3611932323999
No name , 318.630645126296,-72.2264625638606,-23.3611932323999
6 , 306.082524092978,123.165707812095,-23.3611932323999
5 , 189.564257355022,241.476563269096,-23.3611932323999
4 , 114.275531155113,259.402450459551,-23.3611932323999
No name , 35.4016275171123,80.143578555004,-23.3611932323999
No name , 38.9868049552032,-36.3746881829513,-23.3611932323999
No name , 169.845781445522,-75.8116400019515,-23.3611932323999
No name , -45.2648648399337,-106.285648225724,-23.3611932323999
Which are the name, x y and z of the co ordinated points in my workspace. I want to be able to make a list that I can then sort all the data on either the name or x or y or z values ascending or descending. Un fortunately the more I read about lists the more I get confused as I want the data to be shown as above as rows not one long list that is hard to read.
So I need help with creating a list, sorting a list and displaying a list in the sorted manner the Rhino function side of things is ok, I think.
Kind Regards
Roger Davies
Geo-Spatial Survey Solutions Ltd
Mobile 07713 160041
WWW.geo-spatial.co.uk