List.OfRepeatedItem in Python

Hi All,

I can’t figure out how to use design script in Python, could anyone help? Thanks

You need to import the library:

import clr
from Autodesk.DesignScript.Geometry import *

import DSCore 
from DSCore.List import *

#Assign your output to the OUT variable.
OUT = DSCore.List.OfRepeatedItem(1, 10)
1 Like

Many thanks