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

    Equi Space, Dynamic Component?

    Scheduled Pinned Locked Moved SketchUp Components, Materials & Styles
    sketchup
    5 Posts 2 Posters 637 Views 2 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.
    • JClementsJ Offline
      JClements
      last edited by

      Dynamic Interval Display.skpI was wondering if someone knowledgeable of Dynamic Components could create a Cube that would display intervals of equal spaces?

      Here is what I had in mind. User would input how many intervals to display along the Blue Axis, along the Red Axis , and along the Green Axis of a cube. The size of the cube could be entered or use a default of 1unit x 1unit x 1unit. If the cube is scaled, the intervals would scale accordingly.

      The beginning and ending of each interval would be indicated with a Guidepoint.
      An input of "1" would display a guidepoint at the corners of a plane.

      A ruby script could probably accomplish something similar, but I thought the Dynamic Component Options dialog would be more convenient for user input.

      The component could serve as a simple, generic layout tool for spacing geometry, creating stairs, spacing furniture in a room, etc., in combination with the Move tool and inference snapping.

      The image below shows two cubes of guidepoints that have been manually rescaled.


      Dynamic Interval Display.jpg


      Dynamic Interval Display.skp

      John | Illustrator | Beaverton, Oregon

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

        Try this, John.

        "loose" Points can't be used as such for this DC, so I had to create Groups which contain a single Point instead.

        You can scale the component, and enter interval values in the DC Options dialog.

        It misbehaves if you set any of the intervals to zero, so watch that until I find a fix.


        Dynamic Interval Display.skp

        Hi

        1 Reply Last reply Reply Quote 0
        • JClementsJ Offline
          JClements
          last edited by

          Hi Jim,

          Thank you.

          I did a few changes. I tried changing the order of the Red and Blue Units fields to match the order of the Total Length fields but couldn't find a way to do this.

          Revised Display.jpg
          Per the above examaple, is it possible to display the Until Length (it would not be a entry field)?


          Equal Intervals (Dynamic Component).skp

          John | Illustrator | Beaverton, Oregon

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

            No problem, John. Try this one.

            Also, would it make more sense of the attributes were grouped by axis? For example:

            Red
            Units: 12
            Length: 12
            Unit Length: 1
            Blue
            Units: 12
            Length: 12
            Unit Length: 1
            ...

            Also, your image shows the Y axis reversed - I can reverse it if that is better.


            Dynamic Intervals v2.skp

            Hi

            1 Reply Last reply Reply Quote 0
            • JClementsJ Offline
              JClements
              last edited by

              Hi, Jim:

              Yes,it would make it easier to read if organized the way you have shown above.

              I tested the your latest version on my laptop. I noticed that if I select the component and manually scale it, the totally length does not update. If re-enter a value in the dialog and press enter or click the Apply button, then all fields update correctly. In one of the previous versions of the component I believe the total length would automatically update. I have been having some performance issues with my laptop so maybe that is the issue?

              John | Illustrator | Beaverton, Oregon

              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