Switch on or off the northsolar orange line


#1

Hi,

I got a template from some one else where the orange line is truned on. I wish to turn it off temporally. I did read about the Model ‘Location’ setting but with 2018 there is the geo-loaction setting and no way to turn it off there. Also using a mac with the plugin SolarNorth which isn’t loading, so no way to turn it with that.

Any other option available? Ruby code? Console


#2

You can run this code snippet in the Ruby Console (Window > Ruby Console):

Sketchup.active_model.shadow_info["DisplayNorth"] = false

#3

THANK YOU VERY MUCH.

edit
did put it directly inside my own plugin for easy switching

def self.toggle_displayNorth_method
if Sketchup.active_model.shadow_info["DisplayNorth"] == false
Sketchup.active_model.shadow_info[“DisplayNorth”] = true 
else 
Sketchup.active_model.shadow_info[“DisplayNorth”] = false
end
end

#4

This can be simplified as:

def self.toggle_display_north
  Sketchup.active_model.shadow_info["DisplayNorth"] = !Sketchup.active_model.shadow_info["DisplayNorth"]
end

or:

def self.toggle_display_north
  si = Sketchup.active_model.shadow_info
  si["DisplayNorth"] = !si["DisplayNorth"]
end

#5

of course your right. thank you again


#6

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.