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

    Posts

    Recent Best Controversial
    • RE: SketchyPhysics3 FAQ.

      Really confused . . .

      At the moment the project home page lists a release date of Sept 27 2010, the download page it links to says Dec 10 2010, and the newest Windows release in the list of all downloads without a "deprecated" tag says Apr 2009, and the post starting this thread says the newest will always be listed at the top of a page it links to, but it only links a search page that links back to the same post . . . three different dates on three different pages, and one red herring on another. . .

      To compound this, if you search the plugins index for SketchyPhysics it lists several posts for several different versions, and I'm not sorting out which one is newest . . .

      HALP!

      posted in SketchyPhysics
      O
      openhatch
    • RE: [Plugin] Select Outer Edges v1.0

      This just saved me a lot of trouble. πŸ˜„ Thanks!

      posted in Plugins
      O
      openhatch
    • RE: [Plugin] Set Arc and Circle Defaults

      @involute said:

      I'd love to get this to work, openhatch, but I'm unfamiliar with plugins. Can you give me some pointers (cut and paste the code to a file, save it in plugins directory, etc.)? Thanks.

      Sorry I missed this reply. Added to usage notes in the post is this answer:

      Extract the files in the .zip archive to your plugins folder (for example, in Windows 7, this is usually "C:\Program Files (x86)\Google\Google SketchUp 8\Plugins"), and start Sketchup.

      [Edit:] no, that answer is already in there under installation instructions... πŸ˜‰

      posted in Plugins
      O
      openhatch
    • RE: [Plugin] Set Arc and Circle Defaults

      So.. okay.. I added a plugin menu option to alter and store "defaults". πŸ˜„

      And per suggestion, the code uses Sketchup.send_action to avoid problems of hotkeys changing.

      I encounted an undesirable side effect with SendKeys via win32ole.so (and found the same limitation with eventrelay's SendKeyMacro): if Sketchup was loading for a while and I (for example) had a web browser open with a text box, while Sketchup was out of focus, SendKeys would type the macro (for example "12s") into the browser's text box! - appearing to make ghost typing (could be creepy for a user) but also not typing it into SketchUp's Value Control Box.. and so not changing any setting!

      After quite a bit of frustration, and observing that strangely the second parts of the macro (for the Arc tool settings) didn't type into the web browser window, but in fact got in to SketchUp.. however those magic brackets and start_timer(s) work, they seem to alleviate it.. I finally got the error to apparently go away by placing an inert {TAB} before the macro for Circle Tool (as Circle Tool was to Arc Tool (whose settings worked), so Tab is now to Circle Tool).. blah blah πŸ˜’ but it apparently worked:

      	UI.start_timer(0, false){
        Sketchup.send_action   "selectSelectionTool;"
          myEventRelay.SendKeyMacro("{TAB}")
            UI.start_timer(0, false){
            Sketchup.send_action   "selectCircleTool;"
            myEventRelay.SendKeyMacro(circleSides.to_s + "s{ENTER}")
            UI.start_timer(0, false){
              Sketchup.send_action   "selectArcTool;"
              UI.start_timer(0, false){
              myEventRelay.SendKeyMacro(arcSegments.to_s + "s{ENTER}")
                UI.start_timer(0, false){Sketchup.send_action   "selectSelectionTool;"}
      				}
      			}
      		}
      	}
      
      

      Sticking with eventrelay over win32ole; it seems to load and execute faster.

      posted in Plugins
      O
      openhatch
    • RE: [Plugin] Set Arc and Circle Defaults

      Ha!

      Thanks to AlexMozg for rewriting it a better way! πŸ˜„

      (I have little idea what that code actually does, BTW)

      That rewrite only ran after I found a copy of win32ole.so and dropped it into the plugins folder. The copy of the file I found was linked from this thread.

      Is that file what I should use then (or is it safe)?

      posted in Plugins
      O
      openhatch
    • [Plugin] Set Arc and Circle Defaults

      Name : SetArcCircleDefaults

      Description : When SketchUp loads, this script selects the circle tool and changes the number of sides to the circle (to predifined user preference), then selects the arc tool and changes the segments in the arc (also to user preference).  This way it effectively sets their "defaults" (to lower or higher numbers) according to user preference.  As this script comes "shipped", it sets the sides of a circle to 12, and the segments in an arc to 6.
      
      (The defaults for sides of a circle and segments in an arc could be directly set via SketchUp's Ruby API.. if it let you do that.  It doesn't as of SU V8.)
      
      This script requires the eventrelay plugin (windows	only at this writing), or EventRelay.dll, and includes a version of that .dll known at this writing to work.  eventrelay is available at [http://code.google.com/p/eventrelay/](http://code.google.com/p/eventrelay/)
      
      Author : Alex Hall (c) 2011
      	[http://blog.openhatch.net/contact/](http://blog.openhatch.net/contact/)
      	Released under the GNU GPL v2
      
      Installation: At this writing, and unless eventrelay is ported to the Macintosh, this plugin is for Windows only.  Copy these files into the [Sketchup Plugins directory](http://forums.sketchucation.com/search.php?keywords):
      

      EventRelay.dll
      SetArcCircleDefaults.rb
      setArcCircleDefaults-config.txt

      (For example, Google Sketchup 8's plugin directory on Windows 7 defaults to: "C:\Program Files (x86)\Google\Google SketchUp 8\Plugins" - copy these files there in that case.  Then, start Sketchup. For help finding the plugin directory look in the forums: [http://forums.sketchucation.com/search.php?keywords=plugin+folder+OR+directory](http://forums.sketchucation.com/search.php?keywords=plugin+folder+OR+directory) )
      
      Usage : To alter the "defaults" which the script sets for sides of a circle and segments of an arc, go to the "Plugins->Set Circle and Arc Segments Defaults", enter the desired values in the popup box, and click "OK".
      
      POSSIBLE CAVEAT: If you select any window besides SketchUp while SketchUp is loading, it may type key-presses to change these settings into some document or web browser text box etc. It *seems* the script avoids that by typing an inert {TAB} key, but if your set "defaults" for the Circle and Arc tool don't load with SketchUp, make sure you don't select any other windows after starting SketchUp to load.
      
      You could also modify the script to exploit any of the functionality of the eventrelay plugin.
      
      For defaults, numbers divisible by four may be advisable, as they will provide vertices at right angles along the perimiter of the circle, which makes for easy rotation and geometric snapping/angular construction.
      
      Future plans: possible exception handling for any errors related to config file.
      
      Version history:
      
      **[UPDATE]** 1.1 Revamped from scratch, incorporating suggestions by AlexMozg.  Added config storage to setArcCircleDefaults-config.txt file in plugin directory (with setting via "Plugins->Set Circle and Arc Segments Defaults" menu.)
      
      1.0 08/11 Planned updates : none.  Could have menu option to alter and store "defaults"; not programming that.  Anyone else is free to.
      

      Zip archive of files for Set Arc and Circle Defaults plugin.

      posted in Plugins
      O
      openhatch
    • RE: Script to change default sides of a circle?

      [UPDATE] I developed a solution I found for this into a plugin, released at the following thread:

      [Plugin] Set Arc and Circle Defaults

      posted in Newbie Forum
      O
      openhatch
    • RE: [Plugin] ExtrudeTools - Full Set

      @tig said:

      I know about the SketchyPhysics issue - it can also affect other tools...

      Okay, I knew you knew; I guess I might have clarified I was wondering if it's an outstanding problem (I hadn't read those posts you link to here). But the fix you link to will do (assuming it works, as I haven't tried it yet), thanks!

      posted in Plugins
      O
      openhatch
    • RE: [Plugin] ExtrudeTools - Full Set

      If I haven't said this before, awesome tools, thx. πŸ‘

      This doesn't play well with SketchyPhysics; this newest version won't extrude edges by rails successfully if SketchyPhysics is installed. So I keep the two installed in different versions of Sketchup. 😞

      posted in Plugins
      O
      openhatch
    • 1 / 1