Hello, @pyXam. Thanks for your reply.
It was careless of me to forgot putting references. Here’s the screenshots which shows the problem I’m facing.
Lastly, I use Revit 2021 for my personal reason and don’t want to change it. Thanks for your understanding.

