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

    onidarbe

    @onidarbe

    10
    Reputation
    1
    Profile views
    52
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 59

    onidarbe Unfollow Follow
    registered-users

    Latest posts made by onidarbe

    • Need walls that automatically disappear in 1 direction.

      Would love to have walls that are disappearing in 1 direction.

      So when you turn around a house only the internal walls are visual at the back. The walls in front of the camera should disappear so you can select and draw things ride trough it without always needing to hiding and unhide.

      Could be an option in material to color the back of a face not "transparent" but "non existing" πŸ˜‰


      Untitled.png

      posted in SketchUp Feature Requests sketchup
      onidarbeO
      onidarbe
    • RE: [Plugin] 3D Text Editor

      For some reason it only shows a red cross where you click until selecting an other tool.

      So the pop-up to enter or edit the 3D text doesn't show up anymore in Sketchup 2019 😞

      posted in Plugins
      onidarbeO
      onidarbe
    • Sketchyphysics collision not working

      Hi,

      How can I prevent collisions? I can do this with 2 solid square blocks but not with something more complex. See attachment...

      Thank you.

      Sketchup Pro 8.0.16846 + SketchyPhysics 3.2-Dec2


      zoldertrap opvouw mdf sketchyphysics NEW.skp

      posted in SketchyPhysics
      onidarbeO
      onidarbe
    • RE: Calculate the needed width of a WebDialog

      Thanks!

      I found the solution...

      [update 2013-01-23]

      def popup(msg="", timeOut=0, posX=20, posY=70) # 2013-01-23 onidarbe () gmail 
      # Popup a message (including html-tags & \r) with a timout and auto-resize the window
      # A click on the popup-window will disable timeOut and has to be closed manually
        # To see how it's working, add  border;1px solid black;  in the <div style='...'>
        htmlCode = %{
          <html onclick='clicked();' >
            <div id='div' style='float;left; white-space;nowrap;' >
              #{msg.gsub(/\r/,"<br>\n")}
            </div>
            <script type='text/javascript'>
              width=document.getElementById('div').offsetWidth;
              height=document.getElementById('div').offsetHeight;
              document.write("<input type='hidden' id='width' value='" + width + "'/>");
              document.write("<input type='hidden' id='height' value='" + height + "'/>");
              function clicked() { location = 'skp;clicked' };
              document.body.scroll = "auto"; 
            </script>
          </html>
        }  
        win = UI;;WebDialog.new( "" )
        # NOTE; Variables made up on multiple lines have only a \n at the end of each line!
        #       "View source" with Windows Notepad needs to have \r\n
        win.set_html( htmlCode.gsub(/\r\n|\n\r|\n|\r/,"\r\n") )
        # Although WebDialog without pref_key doesn't keep size or location, set_size does!
        # Thereby start with a smaller window instead of a larger previous version
        win.set_size( 130, 30 )
        win.set_position( posX, posY )
        win.show
        UI;;start_timer( 0, false ) { 
          win.set_size( win.get_element_value("width").to_f+60,
                        [800, win.get_element_value("height").to_f+80].min )
        }
        if timeOut != 0
          timerID = UI;;start_timer( timeOut, false ) { win.close }  
          win.add_action_callback( "clicked" ) { UI.stop_timer( timerID ) }
        end
      end
      
      pluginPath = Sketchup.find_support_file( "Plugins" )
      Dir.chdir( pluginPath )
      rbFiles = Dir[ "*.rb" ]
      popup( "<B>All plugins;</B>\r#{pluginPath }\r\r#{rbFiles.join("\r")}", 2 )
      
      
      posted in Developers' Forum
      onidarbeO
      onidarbe
    • RE: JScript innerHTML not working in WebDialog !

      Thanks again!

      So Sketchup uses IE instead of Chrome, although I uninstalled IE? strange

      posted in Developers' Forum
      onidarbeO
      onidarbe
    • JScript innerHTML not working in WebDialog !

      Why does this produce an error in a WebDialog, but not if I run the HTML/JS in my Chrome browser?

      msg = %{
        <html>
          <table>
            <tbody id="test">
              <tr> <td>xxx</td> </tr>
            </tbody>
          </table>
          <script type="text/javascript">
              tbody.innerHTML = "<tr> <td>yyy</td> </tr>";
          </script>
        </html>
      }
      win = UI;;WebDialog.new( "" )
      win.set_html( msg )
      win.show
      

      Same problem using: document.getElementById("test").innerHTML

      posted in Developers' Forum
      onidarbeO
      onidarbe
    • RE: .gsub( /\n/, &quot;\n\r&quot; ) not working in WebDialog

      Thanks Dan!

      But in this case I want for those maybe using my stuff to make it readable in notepad to πŸ˜‰

      posted in Developers' Forum
      onidarbeO
      onidarbe
    • RE: List of all possible functions

      Ok, I should look for more functions...

      But I just read somewhere that I can't assign shortcuts from within Ruby!
      There should be a place where the shortcut are kept, right? A file or registry?

      Does anyone know?

      posted in Developers' Forum
      onidarbeO
      onidarbe
    • RE: .gsub( /\n/, &quot;\n\r&quot; ) not working in WebDialog

      So this time it's not SU Ruby but MS-Windows πŸ˜‰

      posted in Developers' Forum
      onidarbeO
      onidarbe
    • RE: .gsub( /\n/, &quot;\n\r&quot; ) not working in WebDialog

      Thank you all.

      However gsub! isn't the solution, still shows everything on one line in notepad!
      I know <br> is the new-line in html, but I'd like to give out a html that also has new-lines using "View source" in notepad. Makes it more readable πŸ˜‰

      But I've found the problem so it is solved β˜€
      It's stupid but I should have used .gsub(/\n/,"**\r\n**") not .gsub(/\n/,"**\n\r**")

      posted in Developers' Forum
      onidarbeO
      onidarbe