• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Searching for a plugin code template

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 9 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    Iltis
    last edited by 24 Jul 2023, 09:59

    Hello everyone,

    I would like to "cleanly" code small extensions for SketchUp.

    Is there somewhere an empty code template with best practices ? with comments that say "you have to put (this) here"

    For example, I'm wondering about :

    • how many folders ?
    • where (folder) to put toolbar icons, what formats are supported ?
    • where to put menu descriptions in the code ?
    • how to separate the code into different files ?
    • which "containers" to use in the code ?

    I'm not a strong coder, so I'm sorry if these questions seem trivial.

    Do you have anything like this to hand?

    Thank you for your help,
    Renaud

    1 Reply Last reply Reply Quote 0
    • R Offline
      Rich O Brien Moderator
      last edited by 24 Jul 2023, 11:01

      It's a good idea to look at the sketchup example on github to get a feel for best practices

      Link Preview Image
      GitHub - SketchUp/sketchup-ruby-api-tutorials: SketchUp Ruby API Tutorials and Examples

      SketchUp Ruby API Tutorials and Examples. Contribute to SketchUp/sketchup-ruby-api-tutorials development by creating an account on GitHub.

      favicon

      GitHub (github.com)

      The examples are commented so it is easy to see structure

      This is a good example of a simple extension...

      Link Preview Image
      sketchup-ruby-api-tutorials/tutorials/01_hello_cube/tut_hello_cube.rb at main Β· SketchUp/sketchup-ruby-api-tutorials

      SketchUp Ruby API Tutorials and Examples. Contribute to SketchUp/sketchup-ruby-api-tutorials development by creating an account on GitHub.

      favicon

      GitHub (github.com)

      Download the free D'oh Book for SketchUp πŸ“–

      1 Reply Last reply Reply Quote 0
      • I Offline
        Iltis
        last edited by 24 Jul 2023, 14:54

        Thank you very much, this is exactly what I'm looking for ! πŸ˜„ πŸ˜„ πŸ˜„

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement