sketchucation logo sketchucation
    • Login
    1. Home
    2. davidsuke
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 13
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Refresh plugins without restart Sketchup is possible??

      @pecan said:

      @davidsuke said:

      It is a excellent tool!! Only one bad thing, no syntax highlighting, but it's great!!

      Thanks for the advice!!

      If you want syntax highlighting you can use the editor here.

      http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=18130#p146440
      [plugin] SuRDebug

      That's good, and it have auto-indent too??

      posted in Developers' Forum
      D
      davidsuke
    • RE: Refresh plugins without restart Sketchup is possible??

      It is a excellent tool!! Only one bad thing, no syntax highlighting, but it's great!!

      Thanks for the advice!!

      posted in Developers' Forum
      D
      davidsuke
    • RE: Refresh plugins without restart Sketchup is possible??

      Thanks man!!

      And it's possible creat a plugin which reloads all the plugins in the directory plugins or the plugins you write in this plugin??

      I mean a plugin which per example do this. "load "House.rb", like this we can reload all the plugins without write load"xxx.rb" in the ruby console.

      posted in Developers' Forum
      D
      davidsuke
    • RE: Refresh plugins without restart Sketchup is possible??

      Thanks!! I got it! like box.rb 😉

      
      if( not file_loaded?("House.rb") )
      UI.menu("PlugIns").add_item("Make house") {main}
      end
      file_loaded("House.rb")
      
      

      and I tried with FILE and works too!

      posted in Developers' Forum
      D
      davidsuke
    • RE: Refresh plugins without restart Sketchup is possible??

      @remus said:

      if you go to the ruby console and type load "pluginname.rb" your plugin will be refreshed.

      Hey man, thanks!!! It works!! But i have a little problem now, everytime I do this, in the menu of plugin appears a new plugin. If I do 3 times load "house.rb" then I have 3 House in the menu plugins, that's normal??

      In my ruby I have the next line, maybe it's wrong.

      
      UI.menu("PlugIns").add_item("house") {main}
      
      posted in Developers' Forum
      D
      davidsuke
    • Refresh plugins without restart Sketchup is possible??

      I mean, every time I modify my plugins I must restart sketchup to watch the changes. You know som plugins or method for refresh my plugin without restart sketchup???

      Thanks guys!!

      posted in Developers' Forum
      D
      davidsuke
    • How to remove common edges???

      I have one face with an offset, then i draw another face in the middel on this and i want to delete two edge likee this.

      http://img230.imageshack.us/img230/2740/dibujocut.png

      http://img114.imageshack.us/img114/378/dibujo1c.png

      How can i do that???

      posted in Developers' Forum
      D
      davidsuke
    • RE: Problem with variables assignement

      Thanks!!! Now I can continue with my project!!

      posted in Developers' Forum
      D
      davidsuke
    • RE: Problem with variables assignement

      ok! I understand now!! You're a master!!!
      But i hsve the last question for you, sorry lol

      @unknownuser said:

      So you must either find the edges to 'face' before making any other coplanar faces or later on remove the edges for 'face1' from any selection.

      Well, can you tell me how can I have the edges of my "face"after add "face1"???
      I know the second method, remove the lines of the "face1" from selection, but it's possible take only the edges of "face" directly??

      posted in Developers' Forum
      D
      davidsuke
    • RE: Problem with variables assignement

      Thanks! but i don't understan't why when I do

      
      edgesFloor = floor[0].edges
      
      

      why I have all edges of my project inside edgesFloor, because I only put "face" in faces[0], not "face1".
      It's not possible to have the face "face" alone doing faces[0] = face???

      posted in Developers' Forum
      D
      davidsuke
    • RE: Problem with variables assignement

      I'l try it and isn't work.

      Look, I have the next code

      
      require 'sketchup'
      
      Sketchup.send_action "showRubyPanel;"
      
      def main1() 
      model = Sketchup.active_model
      $entities = model.active_entities
      $selection = model.selection
      floor = []
        
      pts = []
      pts[0] = [0, 0, 0]
      pts[1] = [100, 0, 0]
      pts[2] = [100, 100, 0]
      pts[3] = [0, 100, 0]
      
      face = $entities.add_face pts
      floor.push(face)
      
      pts1 = []
      pts1[0] = [25, 25, 0]
      pts1[1] = [75, 25, 0]
      pts1[2] = [75, 75, 0]
      pts1[3] = [25, 75, 0]
      
      face1 = $entities.add_face pts1
      
      edgesFloor = floor[0].edges
      status = $selection.add edgesFloor
      end
      
      UI.menu("PlugIns").add_item("Make house Copy") {main1}
      
      

      I want to view in blue(selected) the edges of the firt square ONLY. But the two squares are selected and i don't know the reason because I only do faces.push() on the first square.

      Any solution??

      Thanks,

      posted in Developers' Forum
      D
      davidsuke
    • RE: Problem with variables assignement

      Sorry for my strange constrcution of code. Yes, here isn't it all of my code, the next time I'll put all. Otherwise, thanks fo reply!!

      I'll try and I tell you if it's work, because I think this is that I need.

      posted in Developers' Forum
      D
      davidsuke
    • Problem with variables assignement

      Hi, I'm new in Sketchup and ruby. I'm from Spain, sorry for my english.
      I have the next problem. I want to save in a variable a face and I do it like this

      vec= [] //It is a list of points
      faceIwant = model.active_entities.add_face vec

      //faceIwant is the face i want to save
      f[0] = faceIwant

      But later I use anotther method which do this:
      vec1= [] //It is a list of points
      face = model.active_entities.add_face vec1

      Then, if I watch the variable f[0] i have the "face", not "haveIwant". I don't know why f[0] changes. Someone can help me??

      Thanks!

      posted in Developers' Forum
      D
      davidsuke
    • 1 / 1