sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Request for a new script, Notes

    Scheduled Pinned Locked Moved Plugins
    11 Posts 7 Posters 2.3k Views 7 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.
    • T Offline
      todd burch
      last edited by

      A few years ago I posted a script called snippets.rb. You can get it here:

      http://groups.google.com/group/Ruby-API/browse_thread/thread/92fd5376be9f5f17/011dd47036d7fadf?lnk=gst&q=ruby+snippets#011dd47036d7fadf

      and then find the Dec 12 2004, 11:14 am post to get the latest copy. Maybe that will foot the bill.

      Todd

      1 Reply Last reply Reply Quote 0
      • G Offline
        gata
        last edited by

        And there's this http://www.smustard.com/script/ToDoList

        Geeze Todd, and your partner has a new baby to support too 😕

        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          This will open WordPad. I made it to show up under Tools because my Plugins menu is too long. I just modified CALC.rb.

          It's not exactly what you had in mind but I imagine it could be modified to do what you want. Or maybe Todd's script suggestion already does that?


          WordPad.rb

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • A Offline
            azuby
            last edited by

            @Ken
            Just one thought (haven't experience on the following topic): Storing the data to the Sketchup folders may not work if you aren't logged in with admin permissions.

            azuby

            *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

            Bad English? PM me, correct me. :smile:**

            1 Reply Last reply Reply Quote 0
            • T Offline
              todd burch
              last edited by

              @gata said:

              Geeze Todd, and your partner has a new baby to support too 😕

              Oops!

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                @dave r said:

                This will open WordPad. I made it to show up under Tools because my Plugins menu is too long. I just modified CALC.rb.

                It's not exactly what you had in mind but I imagine it could be modified to do what you want. Or maybe Todd's script suggestion already does that?

                I like this idea. You know Dave, you could have it open a specific doc file that has the same name as the model file. So each model has it's own unique notes doc. Simple and effective solution. Add a Open Note toolbar button and your done.

                Hi

                1 Reply Last reply Reply Quote 0
                • Dave RD Offline
                  Dave R
                  last edited by

                  @jim said:

                  @dave r said:

                  This will open WordPad. I made it to show up under Tools because my Plugins menu is too long. I just modified CALC.rb.

                  It's not exactly what you had in mind but I imagine it could be modified to do what you want. Or maybe Todd's script suggestion already does that?

                  I like this idea. You know Dave, you could have it open a specific doc file that has the same name as the model file. So each model has it's own unique notes doc. Simple and effective solution. Add a Open Note toolbar button and your done.

                  Sorry, Jim. The script I posted shows the extent of my Ruby skills. I just modified a script I think Todd wrote. Your ideas are good but I haven't the foggiest idea how to implement them.

                  So could a Ruby be written to open WordPad, do a Save as... with the SU file name and save it following the model's path and then leave the WordPad open for use?

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • kenK Offline
                    ken
                    last edited by

                    Thanks all

                    Todd Burch

                    Looked at snippets.rb. Almost what I want. However, I can’t get Wordpad to open the selected file in the script that I am modifying.

                    Gata

                    The ToDoList is something I may buy and use, however, right now it does not keep all the info I want to keep track of.

                    Dave R

                    Tried to modify that program. Got Wordpad to open by using the code, “UI.openURL("wordpad")”. However, I can not get Wordpad to open a particular txt file.

                    azuby

                    Doesn’t seem to be a problem without admin permissions. Side note, with no capitals in your name, any relation to e.e. cumming, the poet?

                    Jim

                    Also thought of opening file name associated with the file name. However, I save many different versions, so the notes would not be in one file, so I want to select the name to use.

                    Dave R

                    I have some macro programming in Excel, but Ruby is just beyond my capabilities. However, I am going to give it a whirl.

                    To all

                    I have shamelessly modified the script, “Didier and TIG Help file locator”. Almost have it working to find and modify a txt file of notes in the note directory that I have created.

                    This exercise has made me want to start scripting, so I have a lot of info to go over, but it will be worth the effort. I would share the almost completed project_notes script I have now, but it would not be fair to Didier and TIG. Hope you two don’t mind me using it as a bases for my start into Ruby scripting.

                    Thanks to all

                    Ken

                    Fight like your the third monkey on Noah's Ark gangway.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RickW
                      last edited by

                      Ken,

                      I could look at doing a custom mod of ToDoList that would store all the info in the model. Thoughts?

                      RickW
                      [www.smustard.com](http://www.smustard.com)

                      1 Reply Last reply Reply Quote 0
                      • kenK Offline
                        ken
                        last edited by

                        RickW

                        Not sure how I missed your note. That would be nice. As I said I have modified Didier’s and TIG "All Plugings Help Files ..." script to open up the Wordpad program, however, I can’t get it to open the Wordpad program and the selected TXT message. Side note, can't seem to find any Ruby help in opening other programs.

                        I am using Wordpad because it has more formatting capabilities than Notepad.

                        I have put in the Help menu a choice, “Project Notes”. When selected this checks the directory Notes, (which I have made) for TXT files, just like the “All Plugins Help Files...” script checks for Help files.

                        Anyway, I would appreciate your help.

                        Note, if this project information is stored in the model, would it move from model to model as I rename the various version I save to keep track of the work in progress? Also, would want to be able to print the Project Notes, so I could pass them along to others. Also, these notes could get large, as I get a lot of email advice and comments that I would like copy into the file and keep track of.

                        Well, again thanks for the offer. Hope to be able to return the favor.

                        Ken

                        Fight like your the third monkey on Noah's Ark gangway.

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

                        Advertisement