Hello,
this code stops with a TypeError on the last command line.
How to assign correctly the duplicated collection to the translatemark method?
How to save the duplicated element IDs to a list?
import hm
import hm.entities as ent
model = hm.Model()
visible_elements = hm.CollectionByDisplayed(model, ent.Element)
elems_to_copy = [elem.id for elem in visible_elements]
col = hm.Collection(model, ent.Element, elems_to_copy)
col_dup = model.duplicatemark(col, 0)
vector = [0,0,1]
distance = 2.
col_tran = model.translatemark(col_dup, vector, distance)