Skip to content

Commit

Permalink
Fixed "Tempfile"
Browse files Browse the repository at this point in the history
  • Loading branch information
janbrouwer committed Mar 13, 2015
1 parent 0b81786 commit 7647043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/opensourceBIM/BIMserver/ifc_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# IFC processors

require 'sketchup'
require 'tempfile'

module OpenSourceBIM
module BIMserver
Expand Down Expand Up @@ -61,7 +62,7 @@ def IfcWrite
unless Sketchup.is_pro?
raise "You need SketchUp PRO to create IFC-files"
end

# Export model to temporary IFC file
model = Sketchup.active_model
file = Tempfile.new(['BIMserver-', '.ifc'])
Expand Down

0 comments on commit 7647043

Please sign in to comment.