Apache HVAC components - ResultsReader

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
ddrumond
VE Newbie
VE Newbie
Posts: 1
Joined: Fri Jan 03, 2020 2:48 pm

Apache HVAC components - ResultsReader

Post by ddrumond »

Hello,

I am having dificulty in using the get_hvac_component_results mehtod on the ResultsReader section.

Where can I fin the component_id reference? Is it in the Hvac network methods?

Also, is there other information available about the Hvac network methods? The help file is laking detail in this part. I cannot figure out how to use these methods. Maybe an exemple would help.

In the 2019 help file the API mapping imagem lacks definition and I can't see the text. Is there another location where to find this image with more resolution?

Thank you in advance.
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Apache HVAC components - ResultsReader

Post by Rhind »

Hi,

All the HVAC Objects have an 'id' attribute you can query. There's some samples available in the 'api_examples/HVAC' folder that may be of use.

I've logged the issue with the API map on our system.

Hope that helps.
dtnuno
VE Newbie
VE Newbie
Posts: 9
Joined: Fri Jan 24, 2020 10:00 am

Re: Apache HVAC components - ResultsReader

Post by dtnuno »

I am having the same issue here. The thing is: the folder mentioned has files .pye which i cannot see the content. Furthermore, I am unable to import it. I also noticed there is no __init__.py file in the folder.

How would one proceed in this situation?
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Apache HVAC components - ResultsReader

Post by Rhind »

I think there's some confusion here about the files that are in Scripts/HVAC (which are used internally by the VE and are not readable) and the samples in Scripts/api_examples/HVAC. The latter are readable and should appear in the side panel of the scripting console by default. I recommend taking a look at those.
dtnuno
VE Newbie
VE Newbie
Posts: 9
Joined: Fri Jan 24, 2020 10:00 am

Re: Apache HVAC components - ResultsReader

Post by dtnuno »

First of all, thank you for the reply.

I see. I did look into the wrong folder. But the folder you mention doesn't seem to exist. I mean, inside api_examples I cannot seem to find HVAC folder at all.

You said it should appear by default, but in my case it is not. How would one add it to the panel then?

Thanks in advance :)
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Apache HVAC components - ResultsReader

Post by Rhind »

What version of the VE are you running? If you are using an older version they won't appear.
dtnuno
VE Newbie
VE Newbie
Posts: 9
Joined: Fri Jan 24, 2020 10:00 am

Re: Apache HVAC components - ResultsReader

Post by dtnuno »

I'm using IESVE 2019 Version 1.0.0.

I already confirmed and in my installation, I do have only one HVAC folder which is the one mentioned before.

Thank you in advance
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Apache HVAC components - ResultsReader

Post by Rhind »

This might be an issue with the installer then. I've logged it in our system for investigation.
dtnuno
VE Newbie
VE Newbie
Posts: 9
Joined: Fri Jan 24, 2020 10:00 am

Re: Apache HVAC components - ResultsReader

Post by dtnuno »

Thank you.

But how would I be able to get my hands on the examples though? Are they online?
User avatar
Rhind
IES Staff
IES Staff
Posts: 87
Joined: Fri Mar 22, 2013 5:06 pm

Re: Apache HVAC components - ResultsReader

Post by Rhind »

Hi,

These will get bundled into the next release installer but in the meantime here is a zip you can download that includes some ApacheHVAC API sample scripts.

Unzip to your machine then add this folder to your VEScripts to access the py files.

http://cdn.iesve.com/ve/vescripts/sampletemp/HVAC.zip.

Thanks for flagging this omission.
Post Reply