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

Revision history [back]

Measure coloring PlanarSurfaces?

Thanks as always for all the kind answers.

I was wondering if I could color the PlanarSurfaces with the colors I want. I was reading the OpenStudio Plugin's code and I'm really lost there. But I really don't know how to change the colors? At first I thought

PlanarSurface.outside_color = Sketchup::Color.new (255, 255, 255, 1.0)

Would work but well it's not and then I thought I should access it via the entity way:

if drawing_interface = space.drawing_interface
    if entity = drawing_interface.entity
        entity.visible = false
    end
end

But it doesn't work there either. So the question is how does one fills the PlanarSurfaces with the desired color?

Thank you as always. Your answers helped me so much till now

Measure coloring PlanarSurfaces?

Thanks as always for all the kind answers.

I was wondering if I could color the PlanarSurfaces with the colors I want. I was reading the OpenStudio Plugin's code and I'm really lost there. But I really don't know how to change the colors? At first I thought

PlanarSurface.outside_color = Sketchup::Color.new (255, 255, 255, 1.0)

Would work but well it's not and then I thought I should access it via the entity way:

if drawing_interface = space.drawing_interface
    if entity = drawing_interface.entity
        entity.visible = false
    end
end

But it doesn't work there either. So the question is how does one fills the PlanarSurfaces with the desired color?

Thank you as always. Your answers helped me so much till now