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

Open Studio SketchUp Plugin CPU Demand

asked 2019-11-05 15:48:00 -0600

Doing something as simple as assigning space types to multiple selected spaces take a LONG time (using the "set attributes for selected spaces" tool). Same thing goes for "add new thermal zones for spaces with no thermal zones".

I have noticed that sketchup/OS plugin never takes more that 12% of my CPU resources.

Is there a way to speed this up? Or, does this mean the ruby programs are only single threaded?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-11-06 07:44:22 -0600

updated 2019-11-06 07:47:33 -0600

Sketchup is single-threaded, like most (if not all) 3d modelers out there. I assume you have 4 CPU which have hyperthreading, so 8 threads... Hence why you're seeing 12%: 100%/8 ~= 12% .

Adding new thermal zones for spaces with no thermal zones would probably be a lot faster using the ruby bindings directly.

# get all spaces
spaces = model.getSpaces

# loop through spaces
spaces.each do |space|
  next if !space.thermalZone.empty?
  z = OpenStudio::Model::ThermalZone.new(model)
  # Rename like space + " Zn"
  z.setName("#{space.name.to_s} Zn")
  space.setThermalZone(z)
end
edit flag offensive delete link more

Comments

Thank you Julien. I have not yet delved into ruby programming as I am new to OS, but this looks like some good homework! :)

Ski90Moo gravatar imageSki90Moo ( 2019-11-06 10:21:41 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 



Question Tools

1 follower

Stats

Asked: 2019-11-05 15:48:00 -0600

Seen: 26 times

Last updated: Nov 06