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

    [Plugin] 3D Parametric Shapes - makes placeable components

    Scheduled Pinned Locked Moved Plugins
    76 Posts 21 Posters 18.9k Views 21 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.
    • J Offline
      johnwmcc
      last edited by

      Thank you TIG. I've done pretty much what you suggest in the renaming - the module is now JWMShapes, and the .rb file name is jwm_shapes.rb, whereas before both just said Shapes or shapes.rb. The menu label now says 3D Shapes (JWM) instead of just 3D Shapes.

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

        The version in the PluginStore is already named "jwm_shapes" [.rb & subfile] 😕
        It is unwise to rename loading RB files as any older ones will still get loaded too !
        But no issues as it still has the same name ??

        Your module inside the subfolder's 'shapes.rb' was named 'JWM', so it didn't need changing either, as that already separated it from other versions...

        The Extension name was the only real issue as it was shared by the su_ version !
        Therefore your version took precedence as it loaded in alphanumeric order before the su_ one and claimed the one available slot.

        TIG

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

          Added missing validation checks in v2.2.9 to require minumum of 3 segments or sides for Tube, Pyramid and Torus.

          Uploaded latest v2.2.9 to Plugin Store, and updated Basic Info version number, Quick Start, and Documentation.

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

            There is an EXTREMELY old version of Shapes in the Plugin Store, by @Last: Shapes v1.0.

            The current one is authored by me and Trimble, and is found under the name "SU Draw Parametric Shapes v2.2.7"

            The version number currently in the Plugin Store is the same as the RBZ here (v2.2.7) - and has been for many months (I haven't updated it recently, and have no current plans for enhancements).

            I had wondered myself about the o umlaut in the folder name, but have no direct experience of using non-ASCII characters in Windows folder structures, though I do know they can cause problems.

            I don't think I know how to suggest anything further to help - I don't know of anything specific to this plugin that might cause the problem Emre has reported.

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

              v2.5 changes the drawn shapes from groups to components, and allows the user to place them at any pickable point, not just insert them at the world origin.

              Thanks to Jim Foltz for providing sample code which I was able to adapt.

              See Plugin Store, or the first post in this thread, for the latest v2.5

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

                John - the plugin did not get published. It has disappeared. I would guess there is a 'publish' button that needs clicked.

                Hi

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

                  I've published it for you [v2.5]. 🤓
                  http://sketchucation.com/pluginstore?pln=jwm_shapes
                  Remember that when you edit the file set in your plugin it is automatically set to be "Unpublished" ['red' button] - this is so there is never a half-baked set of data in the public arena.
                  Click the 'red' button when you are done, and it goes 'green' = "Published" - the public can see you plugin again.
                  In other tabs, remember to click the 'orange' button to confirm edited text etc, otherwise those edits are lost when you leave the tab...

                  TIG

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

                    Sorry about that - I hope I saved all the edits then - will check later today.

                    Many thanks, TIG, for fixing my mistakes.

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

                      I think all the documentation is now updated and the edits are saved - several links to image files were broken though, and I don't know why. Repaired now.

                      NOTE: I found there were multiple copies of one image and deleting them didn't immediately show them as removed - small bug on the Files tab file uploads page?

                      1 Reply Last reply Reply Quote 0
                      • ntxdaveN Offline
                        ntxdave
                        last edited by

                        @johnwmcc said:

                        v2.5 changes the drawn shapes from groups to components, and allows the user to place them at any pickable point, not just insert them at the world origin.

                        Thanks to Jim Foltz for providing sample code which I was able to adapt.

                        See Plugin Store, or the first post in this thread, for the latest v2.5

                        Has it been tested with 2015?

                        Since I have the "other" version installed (not your version), what steps do I need to take to update (assuming your updated version is "clean" for 2015)?

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

                          this version now works fine in all SketchUp versions since at least v8, including v2015.

                          It is now separated from the SketchUp's own "su_" version from the EWHouse...

                          They now have separate Extension names and menu items etc, and so they could be installed side-by-side - Although considering the improvements to this tool, I'd now recommend it over the "su_" one - it offers all of its functionality, plus some extra forms and the ability to determine the shapes location as it is created...

                          Do NOT install the old @Last legacy version !

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • ntxdaveN Offline
                            ntxdave
                            last edited by

                            @tig said:

                            this version now works fine in all SketchUp versions since at least v8, including v2015.

                            It is now separated from the SketchUp's own "su_" version from the EWHouse...

                            They now have separate Extension names and menu items etc, and so they could be installed side-by-side - Although considering the improvements to this tool, I'd now recommend it over the "su_" one - it offers all of its functionality, plus some extra forms and the ability to determine the shapes location as it is created...

                            Do NOT install the old @Last legacy version !

                            Thanks for the quick feedback. I think the fact that I can now control where the shape is drawn is a very strong point. I will install it and remove the su_ version.

                            1 Reply Last reply Reply Quote 0
                            • ntxdaveN Offline
                              ntxdave
                              last edited by

                              Installed and did a quick test - really great that I can draw and place where I want it. 😍

                              👍 👍 👍

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

                                I can't get it to do that !
                                What's the start of the error message say ?

                                TIG

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

                                  Jo Ann - have you ever had another version of Shapes installed, whether from the SketchUcation Plugin store, or SketchUp or Trimble Extension Warehouse? There may still be a conflict, if so.

                                  Please go to your AppData/Roaming/Sketchup/SU 2014/Sketchup/Plugins folder, and delete any existing file(s) called shapes.rb or su_shapes.rb, jwm_shapes.rb or jwm_shapes_loader.rb; and delete any existing folder(s) with the name su_shapes or jwm_shapes (including all that folder's contents).

                                  Then reinstall the current version (v2.5 at time of writing) of the plugin from the Plugin Store here.

                                  If that doesn't work, I'm stumped.

                                  Best wishes, and I hope this works.

                                  John McC

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

                                    I get the following error message when loading SU 2014 after installing the plugin. Is this another instance of problems related to a non-ASCII user name? Or what else might cause this problem? Grateful for any tips!

                                    Error Loading File C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes/jwm_shapes.rb
                                    Error: cannot load such file -- C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes/parametric.rb
                                    C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require'
                                    C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes/jwm_shapes.rb:8:in <top (required)>' C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in require'
                                    C:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in load' C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes_loader.rb:24:in register_extension'
                                    C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes_loader.rb:24:in <module:JWMShapes>' C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes_loader.rb:12:in module:JWM'
                                    C:/Users/Torbjörn/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/jwm_shapes_loader.rb:11:in `<top (required)>'

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

                                      John, in the loader file you should change the line extension.version = "2.2.8 to match the version (2.5?) you refer to in the latest release.

                                      Hi

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

                                        Thanks for reminding me - will do later this evening.

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

                                          Version number updated to 2.51 in both jwm_shapes_loader.rb and jwm_shapes.rb files, and the Plugin Store. Makes no difference to operation, but should now show correct version internally

                                          1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            Extractor
                                            last edited by

                                            Hi John,

                                            I can´t install the last version of the plugin (Sketchucation Plugin Store: v 2.51). The previous versions ran properly.

                                            Here the “Load Errors”:
                                            Error: #<NameError: uninitialized constant JWM::JWMShapes::Parametric>
                                            C:/Users/Frangenberg/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jwm_shapes/jwm_shapes.rb:99:in <module:JWMShapes>' C:/Users/Frangenberg/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jwm_shapes/jwm_shapes.rb:11:in <top (required)>'
                                            C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb:197:in require' C:/Program Files/SketchUp/SketchUp 2015/Tools/extensions.rb:197:in load'
                                            C:/Users/Frangenberg/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jwm_shapes_loader.rb:24:in register_extension' C:/Users/Frangenberg/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jwm_shapes_loader.rb:24:in module:JWMShapes'
                                            C:/Users/Frangenberg/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jwm_shapes_loader.rb:12:in <module:JWM>' C:/Users/Frangenberg/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/jwm_shapes_loader.rb:11:in <top (required)>'

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

                                            Advertisement