-
-
Save Flobin/5b0c564b01d451e5404fbc6b9807673c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200 | |
200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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