Filtering out void spaces when extracting room data using VEScript

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
balajikumar12
VE Newbie
VE Newbie
Posts: 1
Joined: Thu Sep 26, 2024 12:45 pm

Filtering out void spaces when extracting room data using VEScript

Post by balajikumar12 »

Hi I want to use VEScript to extract room data and results to an excel sheet but the void spaces are also part of the results. Is there a condition or check I can use to filter out the void spaces from the output?
tan_veer
VE Newbie
VE Newbie
Posts: 8
Joined: Fri Feb 23, 2024 3:08 pm

Re: Filtering out void spaces when extracting room data using VEScript

Post by tan_veer »

If void spaces are included as Void body subtype, you can use if statement to exclude such spaces from analysis -
Example:
if body.type != iesve.VEBody_type.room:
continue

If void spaces are Room body subtype, you can either exlude them using their names like voids/risers etc. Another way is to check if they have no internal gains and exclude them.
Post Reply