Create Instances of linked Revit model on specified locations

getting an error in line 31 line object is not is not subscriptable.

nevermind got it