AttributeError: can't set attribute

AttributeError: can't set attribute

MichaelT_123
Advisor Advisor
1,232 Views
2 Replies
Message 1 of 3

AttributeError: can't set attribute

MichaelT_123
Advisor
Advisor

Hi TF360,

… just another annoying, unnecessary problem.

The code:

param.value = newValue    # is OK

param.unit = ‘’                      # ERROR:   AttributeError: can't set attribute

I am not sure which version of F360 has started producing it, but the error appears consistently in many scripts which have worked well over … years.

 

Your Opinion Please

MichaelT

MichaelT
0 Likes
Accepted solutions (1)
1,233 Views
2 Replies
Replies (2)
Message 2 of 3

JeromeBriot
Mentor
Mentor
Accepted solution

Hello Michael,

 

This is a read-only property. Since the latest update, the API is more strict about this.

 

Message 3 of 3

MichaelT_123
Advisor
Advisor

Thank you Mr Jerome Briot,

People there seems to be very persistent in their straggle to perfection.

Regards

MichaelT

MichaelT
0 Likes