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

    [Plugin] Parametric Modeling - v0.0.7 - 03 June 2021

    Scheduled Pinned Locked Moved Plugins
    86 Posts 31 Posters 113.4k Views 31 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.
    • M Offline
      manyakteam
      last edited by

      Hello again.
      I am from Turkey and I teach in the field of woodworking industry. I use many different plugins, but "Parametric Modeling" is very convenient especially for cabinet type furniture after creating a library. So, I always tell my students about the power of open source and how they can contribute to it. 👊

      As I mentioned in the previous comment, excellent results can be achieved if something is added to reduce the clutter in projects with many nodes. I hope you continue to improve. Thank you again for what you do.

      1 Reply Last reply Reply Quote 0
      • O Offline
        OBaker
        last edited by

        how would you generate the ability to move an item randomly but within a fixed range of value?

        1 Reply Last reply Reply Quote 0
        • samuel_tS Offline
          samuel_t
          last edited by

          @obaker said:

          how would you generate the ability to move an item randomly but within a fixed range of value?

          For example, I would input the formula below in the "X Position" field of the "Move" node to translate on X axis an entity between 1 and 5 meters (if the active model uses meters).

          rand(1.0, 5.0)
          

          The "rand" function returns a random number in a range. First argument is the minimum number, second argument is the maximum.

          Alternatively, one can use variables instead of hardcoded values if variables are defined in or connected to "Variable ..." fields of the "Move" node. Then the above formula becomes :

          rand(a, b)
          
          1 Reply Last reply Reply Quote 0
          • samuel_tS Offline
            samuel_t
            last edited by

            @traupmann said:

            The disabling of the Layer Organizer worked for all of the provided schemas but two. The files are below.

            Decking on Pedastals Results.skp
            Curved Shelf Result.skp

            Sorry for the very late reply.
            "Decking on Pedastals" appears empty.
            "Curved Shelf" appears incomplete.
            For both, I don't know why...

            @traupmann said:

            Here is a schema I developed
            Arch.skp

            Bravo and thank you for this great schema! I'll include it in the next Parametric Modeling plugin version.

            https://i.ibb.co/gTq3rS0/Sketch-Up-Parametric-Arch.gif

            @traupmann said:

            Can you advise how to pass schema files?

            Inside Nodes Editor, right-click in void. Select "Export schema to a file". Share exported .shema file 😄

            1 Reply Last reply Reply Quote 0
            • S Offline
              sketchucationgreg
              last edited by

              Thank you Samuel for this awesome extension. I spotted this a few years ago and tried a few things out of interest but didn't get far. I returned last week after getting frustrated with the native dynamic component editor. Thanks for your great modifications since it is a very useful tool now. Well done.

              Thanks also to Traupmann for the Arch schema. I changed the numbers a bit but got a Bug Splat after a few minutes.

              I'm building a schema with some similar components and found two strange things

              1. The components often disappear in SketchUp upon modifying the schema. Adding and deleting nodes sometimes makes them reappear.

              2. Some nodes do not appear to be calculating but seem to have correct formula in them (see attachment)


              Blank cells

              1 Reply Last reply Reply Quote 0
              • samuel_tS Offline
                samuel_t
                last edited by

                @sketchucationgreg said:

                Thanks for your great modifications since it is a very useful tool now. Well done.

                Greg, I'm happy to hear this plugin is useful! 😄

                @sketchucationgreg said:

                1. The components often disappear in SketchUp upon modifying the schema. Adding and deleting nodes sometimes makes them reappear.

                Does this happen when you are typing a formula?

                @sketchucationgreg said:

                1. Some nodes do not appear to be calculating but seem to have correct formula in them (see attachment)

                The preview in Math nodes such as Divide can be empty. This is a known issue. It's only a display bug.

                Can you please send me your .skp or .schema file?

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sketchucationgreg
                  last edited by

                  Hi Samuel. Thank you for looking at my post.

                  @samuel_t said:

                  Does this happen when you are typing a formula?
                  Yes.

                  @samuel_t said:

                  The preview in Math nodes such as Divide can be empty. This is a known issue. It's only a display bug.
                  Thanks so much for letting me know that Samuel. I wasn't sure what to do next with that one.

                  @samuel_t said:

                  Can you please send me your .skp or .schema file?
                  Schema attached.

                  1 Reply Last reply Reply Quote 0
                  • samuel_tS Offline
                    samuel_t
                    last edited by

                    Hi Greg,

                    @sketchucationgreg said:

                    The components often disappear in SketchUp upon modifying the schema. Adding and deleting nodes sometimes makes them reappear.

                    @samuel_t said:

                    Does this happen when you are typing a formula?

                    @sketchucationgreg said:

                    Yes.

                    Looks like a bug... Maybe the Parametric Modeling plugin tries to redraw the parametric entities while the schema is in a inconsistent state (incomplete formula).

                    @sketchucationgreg said:

                    Schema attached.

                    I don't see a .schema file attached to your post. You can send me a .skp file or maybe a .schema.zip file.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sketchucationgreg
                      last edited by

                      Hi Samuel,

                      The permanent disappearance of the model seemed to correct itself after I cleaned up my model and developed my schema further, and opened and closed SketchUp a few times along the way. I started it within a model where I had been playing around with the native DC editor so it could have been a conflict of sorts there.

                      I have attached the files which I think were form that version in any case but please don't feel like you need to investigate this one further.

                      I really enjoyed using the interface this time. I think I saw a request for incorporating the follow me tool. I think that would be a really powerful enhancement but I realise that might mean adding some line drawing function.

                      Thanks once again Samuel. I can't wait to find another excuse to take this for another test run.


                      Parametric lantern DC6 Da shape metal.zip

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        lelam11234
                        last edited by

                        Hi Samuel
                        I'm using this your plugin. I see it very usefully for my job. And I'm used to work the plugin "VizPro". It has a few of useful features. Such as:

                        1. Choose many nodes to move, copy, and container (merge node)
                        2. Have a node to access into group (edge, face, point,...)(node Brep in Vizpro)
                        3. Have a node to draw point, arc, line, circle, polygon
                        4. Have a node to input list style
                          This is only my suggest. I'm looking forward to see them in your new version
                          Thank you for your job
                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          WhiteShadow
                          last edited by

                          facing hardship with 2 things, it will be awesome if anyone can help

                          first problem:
                          made a box
                          to copy node, 6 copies
                          to move node, moved some distance
                          now, i have something line this:
                          ■ ■ ■ ■ ■ ■
                          how do i make a solid group of all these copies?


                          another problem:
                          is there a way to randomly move copied opjects between a set range (distance between 2 boxes can be anything from 3 to 10, random distance between every copy)? if yes, how?

                          eg:
                          instead of getting
                          {■ ■ ■ ■ ■ ■},

                          how can i get
                          {■ ■ ■■ ■ ■}

                          1 Reply Last reply Reply Quote 0
                          • Rich O BrienR Offline
                            Rich O Brien Moderator
                            last edited by

                            The calculate node accepts math formula so something like...

                            rand(value,value)
                            

                            ...would output a random value. I'm not sure if that random value can be applied to the copies though.

                            If you right click the Node Editor and choose Export Scheme you could share it

                            Download the free D'oh Book for SketchUp 📖

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              WhiteShadow
                              last edited by

                              Yes, rand (min, max) works for giving random value but the distance between every 2 blocks can't be randomised by it, there must be some other way or something I'm missing completely

                              1 Reply Last reply Reply Quote 0
                              • Rich O BrienR Offline
                                Rich O Brien Moderator
                                last edited by

                                Have you used the Import Scheme to load some of Sam's sample files to study the workflow?

                                That's what I did to understand the possibilities of Node Editor.

                                Download the free D'oh Book for SketchUp 📖

                                1 Reply Last reply Reply Quote 0
                                • samuel_tS Offline
                                  samuel_t
                                  last edited by

                                  @whiteshadow said:

                                  first problem:
                                  made a box
                                  to copy node, 6 copies
                                  to move node, moved some distance
                                  now, i have something line this:
                                  ■ ■ ■ ■ ■ ■
                                  how do i make a solid group of all these copies?

                                  Do you mean put many groups in one group? If yes, there's a "Make group" node for that purpose. Then check Outliner panel...

                                  @whiteshadow said:

                                  another problem:
                                  is there a way to randomly move copied opjects between a set range (distance between 2 boxes can be anything from 3 to 10, random distance between every copy)? if yes, how?

                                  eg:
                                  instead of getting
                                  {■ ■ ■ ■ ■ ■},

                                  how can i get
                                  {■ ■ ■■ ■ ■}

                                  There's at least a way. Look at this "Random Gap" parametric schema, attached below to this post:

                                  https://i.ibb.co/dM5GPLX/Random-Gap.png

                                  It's no yet documented but "Move" node accepts formulas to set dynamically X, Y and Z positions.

                                  In formula: x + a + rand(b,c)

                                  x is X position of Box in loop
                                  a is Self Width of every Box
                                  b is Min Gap between Boxes
                                  c is Max Gap between Boxes


                                  Random Gap.schema.zip

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    beuzleclair78
                                    last edited by

                                    Bonjour Samuel,

                                    J'ai découvert ce plugin et c'est vraiment performant !! Bravo pour le développement et les mises à jours !
                                    Je l'utilise pour un projet personnel.
                                    Par contre, je bloque sur l'opération "Soustraire"...

                                    Comme l'exemple, je dois percer une plaque mais je dois répéter l'opération ...
                                    J'ai essayé plusieurs pistes en regroupant ou en concaténant ...sans succès !

                                    Je veux bien une aide pour simplifier le processus car j'ai une pièce a fabriquer avec nombreux trous !

                                    Merci,


                                    Capture test trous plaque 2.JPG

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

                                      Bonjour Samuel,
                                      Congratulations for your excellent plugin!
                                      Is there an undocumented feature here or do I miss something?
                                      I draw two boxes both with default dimensions, except for the second one with width = 0.5. I connect each output of the DRAW BOX nodes to the inputs of an INTERSECTION node and obtain a 0.5-wide box. I then connect the output of the INTERSECTION node to the input of a MOVE node with 5 in x direction. No problem so far, I get my 0.5-wide box at location (5,0,0).
                                      Now I connect the output of the first DRAW BOX node to the input of a MOVE node with -8 in x-direction without changing anything else in the above setup. Why is my 0.5-wide box now at location (-3,0,0)? It seems that the intersection between the two boxes is first computed, moved by -8 and then moved by 5 by the last MOVE node. BTW, it seems that if I connect the output node of the second DRAW BOX node to the input of a MOVE node nothing changes.
                                      Thanks for your help!
                                      Francois
                                      PS: File in attachment


                                      Parametric.skp

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        Marion barray
                                        last edited by

                                        Hello,

                                        Is it possible to select object already built in the model ?

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

                                        Advertisement