Selecting an option in Warning dialog

Thanks Cyril! It works! But how? I just copied your code in Python-Node. How can it be different?

If you have completely copy\paste the code, I don’t know ¯\(ツ)/¯.
Maybe an indentation problem

3 Likes

Thank you very much for you help Cyril! You are a great programmer!

1 Like

I will admit I was not getting it to work either by using copy and paste, but glad it is working!

Always amazes me how much easier it can be to us C# sometimes even though it should be a price of cake in Python.

2 Likes

Thank you very much Sean! With that workflow I realised that I tried to resolve warnings although they were errors. Cyril editted that one, too :slight_smile:

2 Likes

Yes, error handling can be a real bear. I put together a autonomous model harvester to run on our network for past projects and 95% of the code is just to handle errors and warning on open. It certainly gave me a new appreciation for all of the nuance items that get checked and validated within models especially those from all the back to 2008!!

1 Like

it did not work at the beginning for me too, then I realized that it was necessary to pass a node to True

1 Like

Hello Cyril,

to be honest, I deleted that condition and it still works :slight_smile:

2 Likes