Search found 87 matches

by Rhind
Tue Dec 10, 2024 9:10 am
Forum: VE Python API
Topic: External Libraries
Replies: 2
Views: 3727

Re: External Libraries

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 ...
by Rhind
Wed Sep 20, 2023 11:52 am
Forum: VE Python API
Topic: Why Aps and Vista variable name required for get_room_results()
Replies: 1
Views: 4765

Re: Why Aps and Vista variable name required for get_room_results()

Yes, there are some cases where they are not unique. For example, the APS variable 'Room air temperature&Temperature[w]', maps to both 'Degrees > Max. adaptive temp. (TM 52 criterion 1)' and 'Daily weighted exceedance (TM 52 criterion 2)'.

There is a companion function to get_room_results(), get ...
by Rhind
Thu Aug 24, 2023 9:33 am
Forum: VE Python API
Topic: Calculating WWR by orientation
Replies: 7
Views: 4031

Re: Calculating WWR by orientation

Yes, get_building_orientation() has been available in the software for some time now. The ability to set the building orientation was added in 2023 Feature Pack 1 with set_building_orientation(). Both of these are part of the VEGeometry class.
by Rhind
Wed Feb 22, 2023 9:01 am
Forum: VE Python API
Topic: ApacheHVAC Component Variable Names
Replies: 7
Views: 4181

Re: ApacheHVAC Component Variable Names

Should be 'Entering relative humidity' and 'Leaving relative humidity'. There are a number of such cases where the display name in Vista differs from that used in the results files. If you contact support, they can provide a list of all the variable names.
by Rhind
Thu Jan 12, 2023 10:31 am
Forum: VE Python API
Topic: Rename Spaces
Replies: 2
Views: 2805

Re: Rename Spaces

No, it is not possible to rename spaces via the API at present.

In your example, you are getting a copy of the room group information and modifying the name of the room group in your local copy (not modifying the model).

It is possible to create new room groups and room grouping schemes through ...
by Rhind
Thu Mar 17, 2022 9:11 am
Forum: VE Python API
Topic: Dry-bulb temperature mis-match between API and VistaPro
Replies: 5
Views: 3378

Re: Dry-bulb temperature mis-match between API and VistaPro

As far as I know there's no way of getting that automatically from the API, you would have to add your own post-process step to your script.
by Rhind
Tue Mar 15, 2022 11:36 am
Forum: VE Python API
Topic: Dry-bulb temperature mis-match between API and VistaPro
Replies: 5
Views: 3378

Re: Dry-bulb temperature mis-match between API and VistaPro

VEScript will give you the raw values from the weather file while Vista might do some minor adjustments e.g. for daylight savings time so they may not always match up exactly depending on the weather file.
by Rhind
Thu Feb 17, 2022 10:39 am
Forum: VE Python API
Topic: ApacheHVAC Component Variable Names
Replies: 7
Views: 4181

Re: ApacheHVAC Component Variable Names

Hi,

Looks like you're passing a wrong second parameter to get_hvac_component_results(). You need to use the number rather than the name, so in this case you would need to use 2 as specified in the user guide.

Try changing this:

value = results_file.get_hvac_component_results("HC003396","HVAC ...
by Rhind
Thu Nov 25, 2021 8:43 am
Forum: VE Python API
Topic: Modifying Existing Profiles
Replies: 2
Views: 3835

Re: Modifying Existing Profiles

Yes, this is possible. Here's an example script that changes an existing Free-form profile:


import iesve

existing_ff_profile_id = 'FFRM0033' # Change this to your profile ID
project = iesve.VEProject.get_current_project()
dayprofiles, groupprofiles = project.profiles()

for id, profile in ...
by Rhind
Thu Jul 22, 2021 8:55 am
Forum: VE Python API
Topic: Deleting/Updating daily profiles?
Replies: 1
Views: 2609

Re: Deleting/Updating daily profiles?

Hi,

You can modify existing profiles by loading existing ones, modifying them and then saving the changes.

Example for loading:

project = iesve.VEProject.get_current_project()
dayprofiles, groupprofiles = project.profiles()

Where dayprofiles, groupprofiles are dictionaries of key=profile ID ...