[Code Snippets]

[Code Snippets]

Postby Jim » Mon Jun 07, 2010 6:10 pm

This is a list of SketchUp plugins code which have been posted on the SketchUcation Developers Forum.




Contents



Updated: 2012-07-22 10:42:54 UTC.

  
Most Recently Posted Code
  
Code by Author

0
Hi

Jim 
Global Moderator
 

[Code Snippets] by Subject

Postby Dan Rathbun » Wed Apr 13, 2011 10:28 pm


BY SUBJECT
(No longer Maintained due to lack of donations.)


Animation
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=25119][Code] Animation controller[/url] (Jim)

Arcs & Curves
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=19270][Code][Plugin]ArcCurve-set_segments.rb & changearcsegments[/url] ([url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=28846&p=322175#Author_TIG]TIG[/url])

Arrays
  • (Element References) [Info] [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=29975#p262832]This tripped me up (again) today[/url]
  • [url=http:http://www.ruby-doc.org/core-1.8.6/Array.html]Core Methods of Array class[/url] (offsite)
  • [url=http:http://www.ruby-doc.org/core-1.8.6/Enumerable.html]Methods Mixed in from module Enumerable[/url] (offsite)
  • [url=http:https://developers.google.com/sketchup/docs/ourdoc/array]Methods Added by the SketchUp API[/url] (offsite)

Attributes & Dictionaries
  • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=30066][Info] Allowable Classes for "set_attribute"[/url] (Karen Walkerman)

C/C++ Ruby extensions & SketchUp plugins
  • see: [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=28846#p323876]subpost (below)[/url]

Camera
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=25917][Code] Camera settings[/url] (chrisglasier)
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=26904][Code] Rotate Camera around Target[/url] (Jim)

Classes
  • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38968]Checking for a group?[/url]
  • Misc:
    • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=48066&p=431794#p431794]"Why use a module instead of a class ?"[/url] (Dan Rathbun)

Communications
  • Serial / USB
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=11693&p=259509]Read Serial port or USB interface[/url]
  • Socket
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=31545]Interest in a Networking Sockets Workaround[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=33759]Clients <--> Server Communication (Sockets?)[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=36306&p=319776]Requiring Socket on Mac crashes SU[/url]

Colors
  • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=23837][Code] Ruby Extension for Sketchup color integers[/url]

Component(s)
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=18006][Code] ComponentInstance-add_entities v1.9[/url] (TIG)
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=17962][Code] ComponentDefinition-delete[/url] (TIG)
  • [url=http:http://forums.sketchucation.com/viewtopic.php?t=18028][Code] ComponentDefinition-delete (another version!)[/url] (AlexMozg)
  • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38819]parent instance of a component[/url]
  • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=49571&p=445964#p445858]Collecting definitions that ARE parents of component instances[/url] (TIG)
  • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=44193][Code] intersect_with?() test method[/url] (Dan Rathbun)

Construction Lines & Points

    Debugging
    • [Info] [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=34052]How to debug?[/url]

    Dimension(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=21315][Code] entities.add_linear_dimension[/url] (TIG)

    Edge(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=39016]Ruby How to Select All Connected[/url]

    Entity(ies)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38968]Checking for a group?[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=18538][Code] entity.real_typename[/url] (Matt666)

    Execution & Error Trapping
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=36167#p318387]Help with using begin, rescue, end[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=34885][Code] Error raising scriptlets for testing[/url] (Dan Rathbun)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=19372][Code] Method Model.start_operation for SketchUp 5-6[/url] (AlexMozg)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=25305]Optimization Tips[/url]

    Face(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=3184][Code] orient_faces.rb[/url] (TIG)
    • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=41211][Code] is an entity in a surface[/url]

    File(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=36234#p319024]getting info from a text file[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=26185][Code] 3ds2obj.rb[/url] (Jim)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=29787][Code] reading a CSV file[/url] (Dan Rathbun)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=43007][Code] PCFileTools[/url] - Support UTF8 (TIG)

    Group(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=19765][Code] Group.real_parent[/url] (thomthom)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38968]Checking for a group?[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38925]Copy selection to new group?[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=44193][Code] intersect_with?() test method[/url] (Dan Rathbun)
    • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=52014&view=unread#p470425][Info] Modifying geometry in freshly copied Groups (not unique)[/url] (Fredo6)

    Image(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=21869][Code] Image: definition, transformation, transformation=[/url] (AlexMozg)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=24876][Code] extract png thumbnail image from .skp file[/url] (Jim)

    Layer(s)
    • [Info] [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=36702]Layer0 questions[/url] & answers (Al Hart/TIG)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=20086][Code] layer.delete()[/url] (TIG)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=21090][Code] layer-color= v1.2[/url] (TIG)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=20881][Code] layers.purge_unused[/url] (chrisglasier)

    Material(s)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=20085][Code] material.delete[/url] (TIG)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=20112][Code] material.name= v1.2[/url] (TIG)

    Math
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=36722][Code] Parsing arithmetic formulas[/url] (Fredo6)

    Modules
    • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=48066&p=431794#p431794]"Why use a module instead of a class ?"[/url] (Dan Rathbun)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=46124&p=413623#p412101][Code] Private Mixin Module[/url] (Dan Rathbun)

    Observer(s)
    • [Info] [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=20676]State of Observers[/url] (ThomThom)
    • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=30793]State of Observers Redux — 12 September 2010[/url] (ThomThom)
      • [url=http:http://www.thomthom.net/software/sketchup/observers/][link] State of Google SketchUp's Observers[/url]
    • [url=http:http://forums.sketchucation.com/viewtopic.php?t=21659][Code] MetaObserver[/url] (Jim)

    Pages & Scenes

      Platform (Mac/OSX vs PC/Windows)
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=28846&p=322176#p322176]Issues / Differences / Specifics[/url] (goto next post)
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=34631][Code] FAQ: Detect if plugin is running on the Mac vs PC ?[/url]

      Ruby
      • $LOAD_PATH
        • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=29412&p=257058][Code] Ruby LOAD PATHs script (Win32)[/url] (Dan Rathbun / Jim Foltz)
      • Object References
        • Array : [Info] [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=29975#p262832]This tripped me up (again) today[/url]
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=25305]Optimization Tips[/url]

      Selection
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38925]Copy selection to new group?[/url]

      SketchupExtension
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=39094][Code] SketchupExtension and rbs rubies[/url]

      Strings
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=36722][Code] Parsing arithmetic formulas[/url] (Fredo6)
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=35969#p316774]JSON in Ruby[/url]
      • [url=http:http://forums.sketchucation.com/viewtopic.php?t=20657][Code] UnicodeEx - (0.2.0a) Sketchup + Character Encoding[/url] (thomthom)
      • [url=http:http://forums.sketchucation.com/viewtopic.php?t=20289][Code] file_found?(path) and to_ascii+to_unicode.rb[/url] (TIG)
      • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=34975][Code] Split a long pathstring ~in half at the nearest '/'[/url] (various)

      Styles

        Surface(s)
        • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=41211][Code] is an entity in a surface[/url]


        Text & 3DText

          Texture(s)
          • [url=http:http://forums.sketchucation.com/viewtopic.php?t=23196][Code] texture_by_component.rb[/url] (honoluludesktop)
          • [url=http:http://forums.sketchucation.com/viewtopic.php?t=22719][Code] Real UV from UVHelper data[/url] (thomthom)

          Timer(s)
          • [url=http:http://forums.sketchucation.com/viewtopic.php?t=25178][Code] Timer class[/url] (MartinRinehart)

          Tool(s)
          • [url=http:http://forums.sketchucation.com/viewtopic.php?t=18124][Code] Tool ID Constants - Rev. 2[/url] (thomthom)

          Transform(s)
          • [url=http:http://forums.sketchucation.com/viewtopic.php?t=22639][Code] Transformation_Extensions[/url] (TIG)

          User Interface
          • Command(s)
            • Instructor Helpfiles
              • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=35806#p315546][Code] Load Instructor v1.0.1[/url] (Niall Campbell)
            • Menu(s)
              • [url=http:http://sketchucation.com/forums/viewtopic.php?f=180&t=48350&p=433934#p433934]One Submenu for many plugins[/url] (Dan Rathbun)
            • Mouse
              • [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38651]Mouse Capture (Win32 API)[/url]
            • Toolbar(s)
              • WebDialog
                • [url=http:http://forums.sketchucation.com/viewtopic.php?t=23343][code] reset webdialog and toolbars .bat file[/url] (Jim)
                • [info] [url=http:http://forums.sketchucation.com/viewtopic.php?f=180&t=38940]Web Dialog not firing a JavaScript function...[/url]


              (No longer Maintained due to lack of donations.)
              COMMUNITY CONTENT
              Moderators may edit post / add links at will.
              0
              Last edited by Dan Rathbun on Fri Jul 21, 2017 9:28 pm, edited 43 times in total.
                I'm not here much anymore. But a PM will fire email notifications.
                User avatar
                Dan Rathbun 
                PluginStore Author
                PluginStore Author
                 

                [Info] Platform Issues / Differences / Specifics

                Postby Dan Rathbun » Wed Apr 13, 2011 10:29 pm


                (No longer Maintained due to lack of donations.)
                Platform Issues / Differences / Specifics

                Platform DifferencesMac / OSX SpecificPC / Win Specific

                (No longer Maintained due to lack of donations.)
                COMMUNITY CONTENT
                Moderators may edit post / add links at will.
                0
                Last edited by Dan Rathbun on Fri Jul 21, 2017 9:30 pm, edited 13 times in total.
                  I'm not here much anymore. But a PM will fire email notifications.
                  User avatar
                  Dan Rathbun 
                  PluginStore Author
                  PluginStore Author
                   

                  [Info] C/C++ Ruby extensions & SketchUp plugins

                  Postby Dan Rathbun » Fri Apr 22, 2011 10:13 pm


                  C/C++ Ruby extensions & SketchUp plugins
                  (No longer Maintained due to lack of donations.)


                  Official SketchUp SDK Developers Forum:
                  :!: okay, a dedicated C side Ruby book is also now available:

                  Ruby Source files:
                  Ruby Binary Installer(s):

                  SCF topic threads:
                  Other Forum topic threads (offsite):
                  Examples:

                  COMMUNITY CONTENT
                  (No longer Maintained due to lack of donations.)

                  Moderators may edit post / add links at will.
                  0


                  Last bumped by Dan Rathbun on Fri Apr 22, 2011 10:13 pm.
                    I'm not here much anymore. But a PM will fire email notifications.
                    User avatar
                    Dan Rathbun 
                    PluginStore Author
                    PluginStore Author
                     

                    SketchUcation One-Liner Adverts

                    by Ad Machine » 5 minutes ago



                    Ad Machine 
                    Robot
                     



                     

                    Return to Developers' Forum

                    Who is online

                    Users browsing this forum: No registered users and 17 guests