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

    Topics

    • G

      PushPul not removing faces.

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      146 Views
      Chris FullmerC
      Interesting, I did it manually with no problems. Perhaps this is yet again coming back to SU tolerance issues? Chris
    • G

      SU to VB6.0 (Or there and back again.) :)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      7k Views
      Dan RathbunD
      @marthmatica said: So as an example I did a SkecthUp cafe creator, driven from Excel face point data per row. Maybe someone will find this useful, or a better way to do it, or improve my Ruby, since I am just starting on the Ruby end. Ruby improved. See new topic: [Code] Geometry Creation from Excel worksheet data
    • G

      DHTML dialog boxes

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      249 Views
      thomthomT
      @gruff said: Okay... So are there any books that can walk me through creating a simple hello world web dialog for SketchUp ruby. I don't think you'll find any which directly relates to Sketchup. But any book that talks about web applications will work.
    • G

      Rotate Current View 2D about Screen Z (Ruby solution)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      143 Views
      No one has replied
    • G

      Rotate Current View 2D (As though Z were out of the screen)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      18
      0 Votes
      18 Posts
      942 Views
      R
      @unknownuser said: can you post again in this thread when the update goes up? that's probably the easiest way for me to keep track. thanks so much Will do.
    • G

      Greetings on and all

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      5
      0 Votes
      5 Posts
      218 Views
      Rich O BrienR
      Hi Christine, Here's a link to the Newbie Forum where you can say 'Hi' to everyone http://forums.sketchucation.com/viewtopic.php?f=79&t=57
    • G

      How do we view methods, (And their Arguments) of a Class

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      157 Views
      Chris FullmerC
      Thank you so much for that runnerpack. I really like how cleanly that outputs the methods. I've been trying to figure that out for a while. I think Jim or Todd showed me once, but I forgot where that thread was. I need to bookmark that line of code somewhere. It is quite lovely, Chris
    • G

      Re-define SU Axis in Ruby

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      339 Views
      G
      To the best of my knowledge Chris. I find I need to create new geometry on non-existing planes. By not setting the Axis I can easily get my 2D sketch geometry off kilter. With the Axis aligned properly I get feedback. See the attached pic. The original Axis was at the lower left corner of the block. Picking the odd face (Which is planar to the block face) does not give me the desired X,Y Axis. Sure it defines the plane surface but not the way I need it. This is not the biggest issue though. The hardest one is where the Axis origin is in the correct position inside the part but I need to rotate it say.... about he Y axis. The only work-around I've found is to hide the entire model move (rotate) my Axis then un-hide the model. I don't eyeball my models I create to real world dimensions as best I can. [Edit]Should have done a screen capture. Export removed the Axis from my sample. (It was aligned with the bottom of the extruded feature.)[/Edit] [image: LheS_Sample_BadAxis.jpg]
    • G

      Guitar Study

      Watching Ignoring Scheduled Pinned Locked Moved Woodworking
      3
      0 Votes
      3 Posts
      1k Views
      G
      Indeed, 90 percent of a guitar is sculpted for feel. The fingerboard frets and neck length are the only really dimensionally important aspects.
    • G

      Iron Ruby?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      698 Views
      G
      @cjthompson said: Ruby in Steel just allows you to type .rb files in VS, although I think I misunderstood you. Are you trying to find an IDE to write scripts or are you trying to find a way to connect .NET Applications with Sketchup? First: I would like to use the best IDE for the job. A Good Debugger with the ability to step througb code and hopefully a level of intellisense. VS should provide both. Even if I have to write pseudo modules that mimic the SU API I feel I would be miles ahead of using a text editor. Second: Of course I would like to find a way to drive Sketchup from VS. If it means I can use other VS languages so much the better. If it means I have to learn Ruby in VS... Less desireable from my standpoint but not out of the question. I've been poking around the Iron Ruby forum and it looks like IR is based on the Dot.NET framework and requires it to function. It also appears that Iron Ruby is not really ready for public consumption within VS at this time. They are still working toward version 1.00 Cheers,
    • G

      Where to Start with Ruby?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      18
      0 Votes
      18 Posts
      2k Views
      G
      Read Chris Pines Tutorial and put this cheat sheet together for myself. ==== Ruby for VB Programmers ==== --- Variables --- All variables are variant objects. Variables do not have to be declared before use. Variables are not formally declared. (No Dim statement). As variants they may be re-assigned any data type at any time. Variables that are assigned strings or numbers have methods. (As in VB.NET). Variables that are spelled the same but with different letter case ARE BY DEFINITION different variables. Variables must be assigned names beginning with a lower case letter Ruby --- VB Nil ---- Nothing --- Conversion methods --- to_i = String to integer to_f = String to float to_s = Integer or float to string, Concantinates elements when used with string arrays. --- Strings Manipulation --- Literal Strings are denoted by single quote ( ' ) Backslash is an escape character: ' results in single quote. (\=) Double quoted text is a more flexible form of string defintion. (Inserting and formating) Ruby --- VB ------ & ------------------------ Concantination ------ Str(<string>, <count>) --- Repeat Char/String ------ ' ------------------------ Comments --- Operators and Comparison Operators --- Ruby --- VB ** ----- ^ ----- Exponent % ------ Mod ----- Modulus == ----- = ------ (Comparison) Equivalent != ----- <> ----- (Comparison) Not Equivalent --- Bracket Characters --- denote an array. Curly Brackets { } denote a hash Parenthisis ( ) used in a formula or logical statement work as they should but are optional for methods --- Hashes / Dictionary --- Define as you would an array but with curly brackets and a key. myList = {}; myList{'Bob Mitchell'} = '54823-11'; myList{'Phil Brown'} = '23872-08'; #Etc... --- Arrays --- Arrays are denoted by square brackets rather than parenthisis Arrays are zero based. Arrays elements do not have to be all the same type. Arrays as objects also have methods. (Push, Pop,Last, Length, Sort, Etc...) --- Loops --- Arrays have an interator method: While Loop myArray.Each do | <variable> | ... End While <Statement True> puts <variable> puts <variable> end --- User Methods --- Last variable or Return <variable> Returns value Ruby ----- VB Def( ) --- Sub( ) or Function( ) --- Classes --- Any class may be extended including Ruby's supplied classes. The new method (Implied) is required for object instantiation. An Initialize method may be declared inside a class. The Initialize method can take user parameters. these parameters are required after the <Class>.new method. Properties are defined by the use of the @prefix on variable names. local variables are private to class Private is a Class keyword in Ruby that defines all methods below it as internal to the class. Ruby --- VB Time --- Date
    • 1 / 1