First time here? Check out the Help page!

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

How to generate the shade via Open Studio SDK? [closed]

asked 9 years ago

zhengangzhu's avatar

updated 6 years ago

I use following code trying to generate the shade

Point3dVector points = new Point3dVector();

points.Add(new Point3d(0,1,0));
points.Add(new Point3d(1,1,0));
points.Add(new Point3d(1,0,0));
points.Add(new Point3d(0,0,0));

ShadingSurface shadingSurface = new ShadingSurface(points, model);

but no vertexes set from the generated idf

Shading:Building:Detailed,

  RightFin-{e996d645-5c20-47cf-8df8-faa8b9745cba}, !- Name

  ,                                       !- Transmittance Schedule Name
  ;

Anything else needs to be set to successfully generate the shade?

Preview: (hide)

Closed for the following reason the question is answered, right answer was accepted by zhengangzhu
close date 2015-11-24 02:19:11.632116

Comments

@zhengangzhu please retag with the software, computer language, and existing tags. Thanks!

MatthewSteen's avatar MatthewSteen  ( 9 years ago )

1 Answer

Sort by » oldest newest most voted
4

answered 9 years ago

With Ruby, the constructors would go something like:

points = OpenStudio::Point3dVector.new
points << OpenStudio::Point3d.new(0,1,0)
points << OpenStudio::Point3d.new(1,1,0)
points << OpenStudio::Point3d.new(1,0,0)
points << OpenStudio::Point3d.new(0,0,0)
shadingSurface = OpenStudio::Model::ShadingSurface.new(points, model)
Preview: (hide)
link

Comments

It's the same with C#. Could you generate the shade in IDF using this code?

zhengangzhu's avatar zhengangzhu  ( 9 years ago )
1

If you look in the OSM file, does the shading surface exist? If the issue is that it is not being translated to IDF the issue may be that the shading surface is not a member of a shading surface group. Shading surfaces have to be in a shading surface group just like building surfaces have to be in a space.

macumber's avatar macumber  ( 9 years ago )

Yes. With the shading surface group added the shading can be generated in IDF. Thanks.

zhengangzhu's avatar zhengangzhu  ( 9 years ago )

Training Workshops

Careers

Question Tools

Stats

Asked: 9 years ago

Seen: 201 times

Last updated: Nov 19 '15