sketchucation logo sketchucation
    • Login
    1. Home
    2. doernbrackc
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 1

    doernbrackc

    @doernbrackc

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    doernbrackc Unfollow Follow
    registered-users

    Latest posts made by doernbrackc

    • Why is 2013 breaking this plugin?

      I wrote a very simple plugin for SketchUp 8 which no longer seems to work with 2013. Is there something different or new that I need to add into the ruby code? Below is my simple code which takes every line in an Autocad file and breaks out the end points. Nothing complicated.

      require "sketchup.rb" 
      
      module CD 
      
      def self.export_points
       
      model = Sketchup.active_model 
      ents = model.active_entities 
      path = UI.openpanel() 
      
      if not path then return end 
      
      aFile = File.new(path, "w") 
      
      ents.each{|e| 
      if e.is_a?(Sketchup;;Edge) 
      sp = e.start		 #starting point of the line
      ep = e.end		 #ending point of the line
      x1 = sp.position.x
      y1 = sp.position.y 
      x2 = ep.position.x 
      y2 = ep.position.y 
      aFile.puts(x1.to_s().chop + " " + y1.to_s().chop) 
      aFile.puts(x2.to_s().chop + " " + y2.to_s().chop) 
      aFile.puts(" ") 
      end 
      } 
      
      aFile.close() 
      UI.messagebox('Script Complete') 
      
      end # CD.export_points 
      
      end # MODULE 
      
      filename = File.basename(__FILE__) 
        if not file_loaded?(filename) 
        UI.menu("Plugins").add_item("ExportWalls") {CD.export_points} 
        file_loaded(filename) 
      end
      
      posted in Developers' Forum
      D
      doernbrackc