Get error when I try to use Rhino.CopyObject



I am trying to manipulate the object by Rhino.CopyObject command.
However, I get 'namespace#' object attribute 'CopyObject' is read-only.
Does anyone know what this means and how to fix it?
I added the rhino and gh file with python code below.

import rhinoscriptsyntax as rs
import Rhino

def floorMultiplier(zones,height,number):
    for i in range(1,number+1):
        for zone in zones:
            temp=Rhino.CopyObject(zone,[0,0,height*i]) <=I get error here
    return building


Hi @Katsuya_Obara, try rs.CopyObject()

After importing a namespace, if you type Rhino followed by a dot in the PythonScript Editor and it does not autocomplete what is written after the dot, that method likely does not exist in that namespace. Are you using a different editor than _EditPythonScript ?