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

    [Plugin] projectEditor_dj v1.8.SU.2013-14

    已排程 已置頂 已鎖定 已移動 Plugins
    24 貼文 3 Posters 31.1k 瀏覽 3 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • dukejazzD 離線
      dukejazz
      最後由 編輯

      Dec 8, 2012

      update to five of my plugins


      • fix Clipboard undo's, is now a one step process
      • fix My def are now wrap up as _scaleGroupFloat_dj
      • fix var are now wrap up to djscaleGroupFloat_x[][]
      • I recoded some of my varibies table to fix some of my rubies programs
        ========================================================================

      Fix the undo's problems by pairing these statements

      Sketchup.active_model.start_operation "dj_Group",true,true,true
      copy_group = Sketchup.active_model.active_entities.add_group(@djScaleGroupFloat_sents)

      Sketchup.active_model.start_operation "dj_Group",true,true,true
      copy_group.explode

      Then at the end of the program

      Sketchup.active_model.commit_operation

      global namespace - Done

      global methods - Done

      next:
      class
      web ding dong

      1 條回覆 最後回覆 回覆 引用 0
      • A 離線
        Aerilius
        最後由 編輯

        @dukejazz said:

        Also all my @varaibles are @dj_name @dj_ you say may varible names maybe to small and use by someone else I thought @H or @@u were global varibles and my initial values @dj_ were not?

        Variables that start with @ or @@ ar not global variables. And if they were, it would be good not to use them. Global variables start with a $. There are two reasons why to avoid global variables:

        • to avoid name clashes (two different plugins that use the same name. Ok, that is less likely if you use long variable names or prefixes like $dj_variablexy)
        • to avoid messing up the global (Kernel) namespace

        I was wondering about the method initialize in %(#000000)[scaleGroupFlat_dj_loader.rb:85], I don't see in which class it is (or how it works). Did I miss module/class definitions? There are many methods that appeared to be in the global name space (not in a module) in files:
        • entlast.rb
        • scaleGroupFlat_dj_loader.rb
        • anotherSketchup_dj_loader.rb
        • anotherSketchupPlus_dj_loader.rb
        • tips_dj_loader.rb

        It is always a good idea to wrap code into modules, like:

        module DJ
          module AnotherSketchupPlus
        
            def self.youSU_clearCbExit
              # ...
            end
        
            # ... (other methods)
          end # module AnotherSketchupPlus
        end # module DJ
        

        P.S.: I like the forum's formattin****g tools – they make text much nicer and readable and sometimes funny 😉

        1 條回覆 最後回覆 回覆 引用 0
        • dukejazzD 離線
          dukejazz
          最後由 編輯

          projectEditor_dj 1.5.4 |new name to fit what job action they do| old - dj_plugins v1.5.3
          Copyright Dec 26 2012
          by DukeJazz: James Cochran

          Big new these programs are safe to use, now in module format
          module DJ
          module Plugins

          History:
          Dec 26 2012 v1.5.4

          • All plugins wrap in Module DJ::pluginsName.method_dj(name space)
          • All @variable format (name space) dj_variable
          • All plugins are in subject and name order (easy to look up)
          • Name changed from dj_plugins_loader to projectEditor_dj
          1 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            Why is there a hidden file in the package? "dj_plugin_loader.rb" ?

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 條回覆 最後回覆 回覆 引用 0
            • thomthomT 離線
              thomthom
              最後由 編輯

              There are lots of them... ?

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 條回覆 最後回覆 回覆 引用 0
              • thomthomT 離線
                thomthom
                最後由 編輯

                But why do you package and distrobute a ZIP file full of old and hidden files?
                Even though the RB file is hidden it's loading.

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 條回覆 最後回覆 回覆 引用 0
                • dukejazzD 離線
                  dukejazz
                  最後由 編輯

                  Name change
                  you may delete the old if you want
                  I didn't want a conflick with old still running

                  "Make ruby .rb or.rbs attributes hidden to keep plugins from loading at sketchup startup. ."

                  Select ( the hidden or unhidden folder ) files... and copy them to SU plugins folder for a boot startup of each tool.

                  1 條回覆 最後回覆 回覆 引用 0
                  • dukejazzD 離線
                    dukejazz
                    最後由 編輯

                    Now that it's as a hidden file. dj_pligins_loader.rb It can later be excluded from later ver.

                    On my compter I have 754 rb files and 550 are hidden in my plugins folder and they won't be loaded unless they are unhidden at sletchup startup

                    yes thomthom; thomthom » Today, 4:53 am
                    They will load if you call them thou the ruby script loader

                    I given you these folders (unhidden and hidden) so you don't need to work throu the mess of finding and changing the plugins loaders (copy and drop the file to plugins folder of what you want to hide)

                    yes thomthom; thomthom » Today, 4:53 am
                    I did find two desktop.ini files, I will delete them now

                    This one dj_plugins folder hold all my tools rb and if updated all platform are too.
                    I kind of address them all.

                    1 條回覆 最後回覆 回覆 引用 0
                    • dukejazzD 離線
                      dukejazz
                      最後由 編輯

                      projectEditor_dj 1.6 || old - dj_plugins v1.5.3
                      Copyright Feb 4, 2013
                      by DukeJazz: James Cochran

                      Feb 4, 2013; projectEditor_dj v1.6 bata
                      -change to a toogle tool bar
                      Feb 4, 2013 anotherSketchup_dj_loader v1.6

                      • add Slect all, delete and paste in place
                        Feb 4, 2013; scaleGroupFloat_dj v1.6 bata
                        -add cumulativeScaler_dj move around (a step boxpoint)
                        -add cumulativeScaler_dj size lenear stepper
                        -add cumulativeScaler_dj move lenear stepper
                        -fixes
                        Feb 4, 2013 anotherSketchupPlus_dj v1.6
                      • add explode; to componet; explode now dose both group and componet.
                        Feb 4, 2013
                        -added more Tips
                        Copyright Feb 4, 2013; zoomZoom_dj v1.6
                        -grouping to projectEditor_dj v1.6
                      1 條回覆 最後回覆 回覆 引用 0
                      • dukejazzD 離線
                        dukejazz
                        最後由 編輯

                        update:
                        April 18, 2013; projectEditor_dj v1.6.5 bata
                        add the scaleGroupFloat_dj v1.6.5
                        -add cumulativeScaler_dj rotation around

                        1 條回覆 最後回覆 回覆 引用 0
                        • dukejazzD 離線
                          dukejazz
                          最後由 編輯

                          New ver
                          History:
                          June 18, 2013; projectEditor_dj v1.7 make 2013.m1
                          -new scaleGroupFloat_dj full inputbox format
                          -new selectAll fix for (Mac and PC)
                          -fix icons
                          -fixes for make 2013 m1
                          -set module to LibAnotherScalePlusDJ
                          -changed to self.method
                          -move varaibles table to DJ_lib folder,
                          -djAnotherLib_dj.rb thus DJ::LibAnotherScalePlusDJ.variables_dj
                          -deleted two folder hidden and unhidden

                          • WIP working on paste in place function for Mac

                          pic_0015.jpg

                          1 條回覆 最後回覆 回覆 引用 0
                          • dukejazzD 離線
                            dukejazz
                            最後由 編輯

                            Web page got mess up, ver 1.7 can now be down loaded. 😄
                            Sorry for the wait.

                            1 條回覆 最後回覆 回覆 引用 0
                            • dukejazzD 離線
                              dukejazz
                              最後由 編輯

                              Download: update for SU2014

                              March 1, 2014; projectEditor_dj v1.8.SU.2013-14

                              1 條回覆 最後回覆 回覆 引用 0
                              • 1
                              • 2
                              • 2 / 2
                              • 第一個貼文
                                最後的貼文
                              Buy SketchPlus
                              Buy SUbD
                              Buy WrapR
                              Buy eBook
                              Buy Modelur
                              Buy Vertex Tools
                              Buy SketchCuisine
                              Buy FormFonts

                              Advertisement