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

    [Tool] Extension Selector

    Scheduled Pinned Locked Moved Plugins
    17 Posts 5 Posters 1.7k Views 5 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.
    • H Offline
      hebeijianke
      last edited by

      Good work
      THX................

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        I can see better uses for this, slightly changed. (...need to think about that a bit, and PM ya'.)

        Secondly... DCs should never be turned off. When they are many of the methods in the AttributeDictionary class do not work at all. (ThomThom and I discussed it somewhere here, maybe the API Doc topic. Basically count and 1 other method, work when DCs are off.)
        They are just too tightly integrated with Sketchup to be considered a plugin.

        Uh.. somewhere here I posted a manifest file that has the entry you need to turn on MS Common Controls v6, so you don't get those old ugly Win 3.x buttons and checkboxes. (Search manifest.. oh I'll just open my manifest file and paste it in here.)

        XML: goes in your RT_Manifest

        
          <dependency>
        	<dependentAssembly>
        	  <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
        	</dependentAssembly>
          </dependency>
        
        

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          Oh .. never mind, I see you have already added the dependency into the internel manifest.

          VersionPick.png

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            It would be best if you could run it inside AND outside SketchUp.
            If it is run outside of SketchUp it first checks if SketchUp itself is running.
            If SketchUp itself is not running then it rewrites the Registry immediately, with a closing message "The changes to SketchUp's Active Extensions have been applied...": but if SketchUp itself is running then the message becomes "SketchUp is running: the changes to your Active Extensions will be applied after you close and reopen it...", and it then continues to run as a minimized/hidden cmd/exe which waits until there is no SketchUp process running before re-writing the Registry entries.
            In the same way, if it is run inside SketchUp then it will run as a minimized/hidden cmd/exe which waits until there is no SketchUp process running before re-writing the Registry entries, and the message then becomes "To apply the changes to your Active Extensions you must close and reopen SketchUp...".

            This would then give a consistent interface no matter which method you used.

            Presumably you could do stuff the the MAC "plist" given enough knowledge ?

            TIG

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @tig said:

              It would be best if you could run it inside AND outside SketchUp.

              Many of the Registry Entries are not written until Sketchup closes.. but maybe these are an variance. If so... the writing to the Registry can happen at any time, simplifying things.

              @tig said:

              Presumably you could do stuff the the MAC "plist" given enough knowledge ?

              Jim what are programming in, C ? or VB ?
              If it's C, the Mac porting should be a bit easier.

              I'm not here much anymore.

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

                @dan rathbun said:

                Jim what are programming in, C ? or VB ?
                If it's C, the Mac porting should be a bit easier.

                Neither, it's hack, and it's not portable. It's a compiled autohotkey script - something between a batch file and VB. The "language" is awful, but it let me put this small app together in a few hours including learning curve.

                I have another that is a pop-up calculator for the Measurements box; would that be more useful? Getting the result into the VCB was easy, but I need a better expression evaluator - one that understands SketchUp's Length class would be preferable.

                594.png

                Hi

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

                  Updated version 2 - should be more scalable now using a ListView box.

                  I added the source script to the .zip.

                  What language would you use to make something like this cross-platform?

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • Dan RathbunD Offline
                    Dan Rathbun
                    last edited by

                    @jim said:

                    What language would you use to make something like this cross-platform?

                    For compiled.. I think C, so it could be compiled with Xcode, but the platform specific stuff would be in an include file.

                    For script... well Ruby could do it, using a cross-platform GUI kit, like TK which is part of the Ruby distro.
                    .

                    I'm not here much anymore.

                    1 Reply Last reply Reply Quote 0
                    • Dan RathbunD Offline
                      Dan Rathbun
                      last edited by

                      Jim... why don't MS Common Controls ver 6 appear in your screen shots ??

                      Do you have "Windows Classic" set as your theme ?

                      I'm not here much anymore.

                      1 Reply Last reply Reply Quote 0
                      • Dan RathbunD Offline
                        Dan Rathbun
                        last edited by

                        Version 2: Just hitting OK when 7 is displayed in Version Input box:
                        RegNotFoundError.png

                        I'm not here much anymore.

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

                          @dan rathbun said:

                          Jim... why don't MS Common Controls ver 6 appear in your screen shots ??

                          Do you have "Windows Classic" set as your theme ?

                          I set my computer to "performance" over "appearance"


                          596.png

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • Dan RathbunD Offline
                            Dan Rathbun
                            last edited by

                            @jim said:

                            @dan rathbun said:

                            Jim... why don't MS Common Controls ver 6 appear in your screen shots ??

                            Do you have "Windows Classic" set as your theme ?

                            I set my computer to "performance" over "appearance"

                            If you check just the last box on that list, you'll be able to see how the rest of the world, sees your applets; likely without any noticable slowdown.

                            I'm not here much anymore.

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

                              I recently learned the script language i used to write this, which is called AutoHotKey, gets flagged by a lot of people's anti-virus software. Be assured if you saw this there is no virus, but I've removed the executabele and posted just the source code.

                              Hi

                              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