External Libraries

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
Josef_UIBK
VE Newbie
VE Newbie
Posts: 5
Joined: Fri Aug 23, 2024 6:20 am

External Libraries

Post by Josef_UIBK »

Hey,

is there any chance to add external python libraries which are noch already in the iesve archive? We are working on an ifc importer and it would be very usefull to use the IfcOpenShell Library. Right now we have to convert the needed information to a *.csv file, which is not really a clean solution.

Thx for any kind of information.
tan_veer
VE Newbie
VE Newbie
Posts: 8
Joined: Fri Feb 23, 2024 3:08 pm

Re: External Libraries

Post by tan_veer »

Hi Josef,

This feature would be super helpful. Unfortunately, currently there is no way to access external libraries. I have tried different ways like pasting installed library folders in VE folder or current script folder but it throws a lot of errors. Importing and exporting data in different forms is only workaround.
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: External Libraries

Post by Rhind »

Hi,

You can add custom paths to import additional libraries in the configuration dialog. In the VEScript Python Editor, click the 'Configure...' button and in the dialog you'll find a 'Paths' section. Add your path to the list and any libraries in that folder will become accessible to VEScript.

Note that the version of the library used must be compatible with the version of Python used by the VE to work correctly. Some libraries may also not work for other reasons.

Hope this helps.
Post Reply