PickObject and ISelectionFilter

Xinh Chao Anh Thanh!

  1. pyrevit does not support python 3 that well yet.
  2. the piece of code you provided misses the imports and seems to be a dynamo script. Not entirely the same framework, so it would need some tweaking depending on the import section
  3. plenty of example all around about ISelectionFilter:

The error you mention usually lists the line of the error, providing the full script + the full error text / providing context usually helps us provide with answer