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

    Topics

    • schorradtS

      [Plugin] Hidden Manager (08.Feb.2015)

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      48
      0 Votes
      48 Posts
      33k Views
      B
      Great plug-in idea. However, I discovered a problem when working with one of my dynamic components when your plug-in is loaded. I started getting hard crashes of Sketchup when I change a parameter that changed the number of copies of a subcomponent. It is so bad that the bug-splat screen doesn't even display. Unloading your plug-in fixes the problem for me. I can send you the dynamic component if it will help. I am using the Sketchup Pro 15.3.331 64-Bit.
    • schorradtS

      Md5 encoding in sketchup

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      1k Views
      Dan RathbunD
      These files do not belong in the "Plugins" dir. The should stay in the Ruby "lib" & platform dirs, and you should add those paths onto the $LOAD_PATH array. These so files also need "digest.rb" and "digest/sha2.so" (at least in Ruby 1.8.6-p287,.. where "md5.rb" is no longer needed.)
    • schorradtS

      Code to check isFaceInFace

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      151 Views
      thomthomT
      I think this will work. It checks the loops of face1 and looks for face2. def isFaceInFace(face1, face2){ face1.loops.each { |loop| next if loop.outer? return true if loop.edges.first.faces.include?(face2) } return false end
    • schorradtS

      [Plugin] CLineTool (Small Update)

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      4
      0 Votes
      4 Posts
      8k Views
      schorradtS
      i try to start the Instructor from clinetool def getInstructorContentDirectory c = File.join(File.dirname(__FILE__), "clinetool") return c.to_s end i have a index.html included, but it doesnt work why? This is my Animation, is also a part for Visuel Index... [image: ZFEa_clinetool.gif]
    • schorradtS

      Overwrite Eventhandler ?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      290 Views
      A
      Implementing a tool is as simple as creating a class an implementing the methods. Look at the linetool.rb in examples class LineTool def initialize ... end def activate ... end etc... def onLButtonDown(flags, x, y, view) ... end ... end As for why the observer method is returning odd values... no idea, I'll have to try it. EDIT: I implemented a test observer and it works fine. class MyTestObserver < Sketchup;;ToolsObserver def onActiveToolChanged(tools, name, toolid) puts tools.to_s + " " + name.to_s + " " + toolid.to_s end def onToolStateChanged(tools, name, toolid, xxx) puts tools.to_s + " " + name.to_s + " " + toolid.to_s + " " + xxx.to_s end end It ouput "#Sketchup::Tools:0x5c1b690 CircleTool 21096" to the ruby console. You'll notice there is a fourth parameter for onToolStateChanged. The API is wrong; it doesn't list that parameter but without it there will be an error.
    • schorradtS

      [Plugin] Construction Tools (2014-03-22)

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      14
      0 Votes
      14 Posts
      23k Views
      X
      Error Loading File wco_addcpoint.rb Error: C:/Users/Audrius/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/wco_addcpoint.rb:31: syntax error, unexpected ',', expecting ')' @@cu_addcpoint = UI::create_cursor (c, 5 , 18); ^ C:/Users/Audrius/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/wco_addcpoint.rb:159: invalid multibyte char (UTF-8) C:/Users/Audrius/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/wco_addcpoint.rb:159: syntax error, unexpected tIDENTIFIER, expecting ')' cmd = UI::Command.new("Konstruktionspunkt hinzufügen...") { ^ C:/Users/Audrius/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/wco_addcpoint.rb:162: syntax error, unexpected tCONSTANT, expecting end-of-input cmd.small_icon = "WCO_ADDCPOINT/icon_addcpoint.png"
    • schorradtS

      Help: Paths & Co

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      2
      0 Votes
      2 Posts
      273 Views
      fredo6F
      Only the Ruby method "Require" and "Load" use the globals $: and $". For other methods loading files such as icons or images, the path is taken from the method arguments, without reference to the absolute path of Ruby in $:. In addition, several plugins assume that they are located in the Sketchup Plugin folder to compute path to files to be loaded. This is the case for my plugins in current versions (I am changing the strategy for my next versions however). The question of alternate directory for Pluginsis anyway very interesting, because: this allows to sahre plugins between different version of Sketchup (useful when we have SU6 and SU7, with pro and Free versions) on Windows Vista, you have to configure some security rules in order to copy and write to files loacted in the C:/Program Files(x86). in network configurations or in some offices, the access to the drive may simply be prohibited So using an alternate folder on a private drive gives a lot more flexibility. Technically, it is just a matter of respecting some programming rules. But, for users that are not able to write scripts, there must be some conventions for providing an esay configuration tool for Sketchup to tell where scripts are. This deserves reflection and I am sure that the community of Ruby scripters could come with a solution. Fredo
    • schorradtS

      Camera-Bug

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Discussions sketchup
      3
      0 Votes
      3 Posts
      540 Views
      P
      Your are experiencing clipping - several possible causes, see the SU help on this matter. http://sketchup.google.com/support/bin/answer.py?answer=36261&query=clipping&topic=&type=
    • schorradtS

      Search Bounding Box-Script

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      564 Views
      G
      Also there's this http://www.smustard.com/script/ChamferAlongPath The old SU forum needed to move in order to gain access to the greater Google resources to better support the growing user community http://groups.google.com/group/sketchup-Pro-Groups.
    • schorradtS

      Hiilfe bei Turbosketch

      Watching Ignoring Scheduled Pinned Locked Moved Deutsch
      12
      0 Votes
      12 Posts
      2k Views
      T
      Mich interessiert vor allem die Möglichkeit zusätzlicher Lichtquellen. Ich arbeite auf Mac. Da werde ich auch mal etwas testen. Aber erst, wenn Version 6 auf Deutsch kommt, wenn überhaupt...
    • 1 / 1