CPython3 and .NET interfaces

Hi,

I am trying to create a custom SelectionFilter using the ISelectionFilter interface, but due to the limitations of CPython3 it seems I’m not able to.

As stated on the Dynamo GitHub this is a known issue with CPython3: Work in progress to improve Python 3 support · DynamoDS/Dynamo Wiki · GitHub

Is there any way around this other than using IronPython2?

Thanks

You need to declare the namespace as noted here: Implement a C# Interface in Python for .NET - Stack Overflow

That will get you one run. To utilize it repeatedly you’ll want to generate a new random value as the namespace value. I utilize UUID for this.

2 Likes

Awesome, thanks!