Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Script to assign airwalls to selected space

Hey, I am trying to assign the "Surface" type Walls of a selected space to airwalls, through a script. I am able to get the surfaces of the selected space, check if they are Walls, and if their OutsideBoundaryCondition is "Surface" and change the surface ConstructionName to "Air Wall". However, as I understand, for this script to work, adjacent surfaces to the surfaces assigned as airwalls (which would be part of the neighbouring space), need to be assigned to the same construction as well.

In SketchUp, the 'Outside Boundary Condition Object' SketchUp Image provides this information, but I do not know how to access this information through code. The surface class reference in the documentation (http://mea-developer-nrel-legacy-downloads.s3-website-us-west-2.amazonaws.com/buildings/openstudio/releases/1.4.0/docs/model/html/classopenstudio_1_1model_1_1_surface.html) does not specify anything about the Outside Boundary Condition Object (different from the Outside Boundary Condition ) Is there a method to tell me what the adjacent surface is to a specific surface, or a method to access the information above via code? Any other suggestions to implement this idea better are also welcome! Thanks.

Script to assign airwalls to selected space

Hey, I am trying to assign the "Surface" type Walls of a selected space to airwalls, through a script. I am able to get the surfaces of the selected space, check if they are Walls, and if their OutsideBoundaryCondition is "Surface" and change the surface ConstructionName to "Air Wall". However, as I understand, for this script to work, adjacent surfaces to the surfaces assigned as airwalls (which would be part of the neighbouring space), need to be assigned to the same construction as well.

In SketchUp, the 'Outside Boundary Condition Object' SketchUp Image provides this information, but I do not know how to access this information through code. The surface class reference in the documentation (http://mea-developer-nrel-legacy-downloads.s3-website-us-west-2.amazonaws.com/buildings/openstudio/releases/1.4.0/docs/model/html/classopenstudio_1_1model_1_1_surface.html) does not specify anything about the Outside Boundary Condition Object (different from the Outside Boundary Condition ) Is there a method to tell me what the adjacent surface is to a specific surface, or a method to access the information above via code? Any other suggestions to implement this idea better are also welcome! Thanks.

Script to assign airwalls to selected space

Hey, I am trying to assign the "Surface" type Walls of a selected space to airwalls, through a script. I am able to get the surfaces of the selected space, check if they are Walls, and if their OutsideBoundaryCondition is "Surface" and "Surface", change the surface ConstructionName to "Air Wall". However, as I understand, for this script to work, adjacent surfaces to the surfaces assigned as airwalls (which would be part of the neighbouring space), need to be assigned to the same construction as well.

In SketchUp, the 'Outside Boundary Condition Object' SketchUp Image provides this information, but I do not know how to access this information through code. The surface class reference in the documentation (http://mea-developer-nrel-legacy-downloads.s3-website-us-west-2.amazonaws.com/buildings/openstudio/releases/1.4.0/docs/model/html/classopenstudio_1_1model_1_1_surface.html) does not specify anything about the Outside Boundary Condition Object (different from the Outside Boundary Condition ) Is there a method to tell me what the adjacent surface is to a specific surface, or a method to access the information above via code? Any other suggestions to implement this idea better are also welcome! Thanks. Thanks.

Script to assign airwalls to selected space

Hey, I am trying to assign the "Surface" type Walls of a selected space to airwalls, through a script. I am able to get the surfaces of the selected space, check if they are Walls, and if their OutsideBoundaryCondition is "Surface", change the surface ConstructionName to "Air Wall". However, as I understand, for this script to work, adjacent surfaces to the surfaces assigned as airwalls (which would be part of the neighbouring space), need to be assigned to the same construction as well.

In SketchUp, the 'Outside Boundary Condition Object' SketchUp Image provides this information, but I do not know how to access this information through code. The surface class reference in the documentation (http://mea-developer-nrel-legacy-downloads.s3-website-us-west-2.amazonaws.com/buildings/openstudio/releases/1.4.0/docs/model/html/classopenstudio_1_1model_1_1_surface.html) does not specify anything about the Outside Boundary Condition Object (different from the Outside Boundary Condition ) Is there a method to tell me what the adjacent surface is to a specific surface, or a method to access the information above via code? Any other suggestions to implement this idea better are also welcome! Thanks.

Script to assign airwalls to selected space

Hey, I am trying to assign the "Surface" type Walls of a selected space to airwalls, through a script. I am able to get the surfaces of the selected space, check if they are Walls, and if their OutsideBoundaryCondition is "Surface", change the surface ConstructionName to "Air Wall". However, as I understand, for this script to work, adjacent surfaces to the surfaces assigned as airwalls (which would be part of the neighbouring space), need to be assigned to the same construction as well.

In SketchUp, the 'Outside Boundary Condition Object' SketchUp Image provides this information, but I do not know how to access this information through code. The surface class reference in the documentation (http://mea-developer-nrel-legacy-downloads.s3-website-us-west-2.amazonaws.com/buildings/openstudio/releases/1.4.0/docs/model/html/classopenstudio_1_1model_1_1_surface.html) does not specify anything about the Outside Boundary Condition Object (different from the Outside Boundary Condition ) Is there a method to tell me what the adjacent surface is to a specific surface, or a method to access the information above via code? Any other suggestions to implement this idea better are also welcome! Thanks.