2

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

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?

zhengangzhu's avatar
261
zhengangzhu
asked 2015-11-19 02:19:17 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2018-05-19 12:43:54 -0500
edit flag offensive 0 remove flag reopen merge delete

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

Comments

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

MatthewSteen's avatar MatthewSteen (2015-11-19 07:29:21 -0500) edit
add a comment see more comments

1 Answer

4

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)
ericringold's avatar
10.6k
ericringold
answered 2015-11-19 09:00:22 -0500
edit flag offensive 0 remove flag delete link

Comments

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

zhengangzhu's avatar zhengangzhu (2015-11-19 18:45:10 -0500) edit
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 (2015-11-20 11:47:27 -0500) edit

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

zhengangzhu's avatar zhengangzhu (2015-11-24 02:18:03 -0500) edit
add a comment see more comments