I am writing simple script to multiply the zones to specified height (z-axis) specified times.
I get error
Runtime error (TypeErrorException): iteration over non-sequence of type Brep at rs.CopyObject is executed. Since I don’t expect iteration happens at this code, I have no idea what is wrong. Can anyone tell me the reason? Below is the code.
import rhinoscriptsyntax as rs def floorMultiplier(zone,height,number): building=[zone] for i in range(1,number+1): print (i) print (type(zone)) temp=rs.CopyObject(zone,[0,0,height*i]) <=I get error at this point building.append(temp) return building AllZones=floorMultiplier(TypicalFloor,FloorHeight,FloorNumber)