Revit API 2015 Python: GetAllViewports() takes exactly 1 argument (0 given) -


    data = unwrapelement(in[0])     outlist = []     in data:         vs = viewsheet.getallviewports()         outlist.append(vs)     out = vs 

this kind of problem:

revit api 2015 python: getallviewports() takes 1 argument (0 given) 

what arg need place in getallviewports()?

the error "... takes 1 argument (0 given)" hint calling unbound instance method: instead, hold of viewsheet interested in , call getallviewports method there, opposed using method on class name (viewsheet).


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -