AttributeError -> .get_variable ()

The VE Python API allows users create simple programs using the Python Programming Language, to interact with a VE Model and/or Vista Results File
Post Reply
maiquesk
VE Student
VE Student
Posts: 33
Joined: Wed Jan 19, 2011 8:58 am
Contact:

AttributeError -> .get_variable ()

Post by maiquesk »

Hi,

Sometime, when I use script with the method '.get_variable ()', the script bug like that:

Code: Select all

Traceback (most recent call last):
  File "C:\_Kevin\_Ext_Kevin\test\T_39_VE_2017\VE_Script_2018\sortie_resultat_room.py", line 71, in <module>
    aps_variables = results_file_reader.get_variables()
AttributeError: type object 'Font' has no attribute 'values'
I close then re-open and sometime it work again, some time not. It's very random !!

is there a solution to this probleme ?

Best Regards,

Kevin
maiquesk
VE Student
VE Student
Posts: 33
Joined: Wed Jan 19, 2011 8:58 am
Contact:

Re: AttributeError -> .get_variable ()

Post by maiquesk »

I forget ! I am on VE2018.1.1.0
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: AttributeError -> .get_variable ()

Post by Rhind »

There was an issue with the get_variables method in some previous versions of the VE. This was fixed in 2019.
Post Reply