Error when run python script by PyRevit

Hi All!

I try creat tool auto sum length of Walls and test run with PythonShell is Ok
But when Run by PyRevit has error

This is my script:
script.py (966 Bytes)

Hello @manhgt214 ,you could try ask the question here…

Solved!
I finded on internet
‘Program must specify character code when using Japanese’
paste: # coding: UTF-8 to first line of script