Skip to content

Instantly share code, notes, and snippets.

@Flobin

Flobin/output Secret

Created February 10, 2017 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Flobin/5b0c564b01d451e5404fbc6b9807673c to your computer and use it in GitHub Desktop.
Save Flobin/5b0c564b01d451e5404fbc6b9807673c to your computer and use it in GitHub Desktop.
import rhinoscriptsyntax as rs
ribs_1 = rs.GetObjects("Select Ribs_1", 16)
ribs_2 = rs.GetObjects("Select Ribs_2", 16)
#thickness = rs.GetReal("Material thickness")
length_ribs_1 = len(ribs_1)
length_ribs_2 = len(ribs_2)
print length_ribs_1
print length_ribs_2
for i in range(0,length_ribs_1):
objtype = rs.ObjectType(ribs_1[i])
if objtype != 8:
print "Object ID: ", ribs_1[i]
print "Object type: ", objtype
for j in range(0,length_ribs_2):
objtype = rs.ObjectType(ribs_2[j])
if objtype != 8:
print "Object ID: ", ribs_2[j]
print "Object type: ", objtype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment