Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AttributeError: can't set attribute

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
MichaelT_123
774 Views, 2 Replies

AttributeError: can't set attribute

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
2 REPLIES 2
Message 2 of 3
JeromeBriot
in reply to: MichaelT_123

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
in reply to: JeromeBriot

Thank you Mr Jerome Briot,

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

Regards

MichaelT

MichaelT

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report