sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Parametric entities

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 5 Posters 584 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.
    • C Offline
      cjthompson
      last edited by

      I am thinking of learning how to use parametric entities, but I would like to see if anyone else has used them, and if they like or dislike using them. Right now, I am using classes to group attributes, so it hopefully won't be that big of a leap.

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

        Chris, do you mean Dynamic Components?

        Hi

        1 Reply Last reply Reply Quote 0
        • C Offline
          cjthompson
          last edited by

          Possibly. From what I can see, parametric entities can be created with either version, but I don't know much about them.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            There isn't anything called parametric entities in SU. But as Jim mentioned, you got Dynamic Components. They can only be created with Pro - but used by both.
            Not sure what you mean by using classes to group attributes though...

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

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

              You CAN make 'parametric entities' with a script - there is a sample script that makes parametric shapes like cones and boxes etc that's downloadable from the Sketchup Script page... There's a special 'parametric.rb' that helps. You add the shape using a dialog for its parameters. When you have made a shape you can later select it and get a context-menu to edit its properties - then the dialog lets you change its parameters... Fairly basic BUT the start of a parametric entity script without the dynamic-component complications...

              TIG

              1 Reply Last reply Reply Quote 0
              • C Offline
                cjthompson
                last edited by

                @tig said:

                You CAN make 'parametric entities' with a script - there is a sample script that makes parametric shapes like cones and boxes etc that's downloadable from the Sketchup Script page... There's a special 'parametric.rb' that helps.

                That was what I was referring to. perhaps I wasn't using the right terminology.
                Have you used the parametric.rb script before? What I am really interested in is the pros and cons of using it, and whether anyone has tips regarding it.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cjthompson
                  last edited by

                  @thomthom said:

                  Not sure what you mean by using classes to group attributes though...

                  Basically, what I am trying to accomplish is to reference a group of entities in the code by what it actually is, for example, car, boat, etc. By doing this, I should be able to greatly simplify the code by saying boat.height or car.door.length. Like TIG said, It would also allow users to change those attributes through a dialog.

                  1 Reply Last reply Reply Quote 0
                  • BepB Offline
                    Bep
                    last edited by

                    There is a plugin ,driving dimensions ,maybe its a start towards what you are looking for.

                    403 Forbidden

                    favicon

                    (drivingdimensions.com)

                    Bep

                    "History is written by the winners"

                    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