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

    Structural Grid Component

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    6 Posts 4 Posters 2.1k Views 4 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.
    • A Offline
      ArtPen
      last edited by

      Hey Guys,

      I am making a structural grid component.
      My grid lines are repeated by a COPY command inside component attributes .
      Just wondering is there a way to insert letters and numbers into grid markers.

      • 1, 2, 3, 4, …. for horizontal lines
      • A, B, C, D …. for vertical

      So every COPY of a grid will have next number or letter.

      Cheers

      1 Reply Last reply Reply Quote 0
      • A Offline
        ArtPen
        last edited by

        Thought image will help....


        image01

        1 Reply Last reply Reply Quote 0
        • utilerU Offline
          utiler
          last edited by

          Not that I know if, mate. I've done up a simple SU file containing grids that I can insert and use for each job.

          What is the centrerline you've drawn there?

          Just Curious...

          1 Reply Last reply Reply Quote 0
          • sdmitchS Offline
            sdmitch
            last edited by

            @artpen said:

            Hey Guys,

            I am making a structural grid component.
            My grid lines are repeated by a COPY command inside component attributes .
            Just wondering is there a way to insert letters and numbers into grid markers.

            • 1, 2, 3, 4, …. for horizontal lines
            • A, B, C, D …. for vertical

            So every COPY of a grid will have next number or letter.

            Cheers

            Doubtfully the answer to your question but may give you an idea.

            mod = Sketchup.active_model
            ent = mod.active_entities
            sel = mod.selection
            ci=sel.first; ci.make_unique
            ents=ci.definition.entities
            p0=ci.bounds.corner(2).transform ci.transformation.inverse
            width=ci.bounds.width
            height=ci.bounds.height
            number='1'; dist=0; inc=24
            0.upto(width/inc) do
             p1=p0.offset(X_AXIS,dist)
             p2=p1.offset(Y_AXIS,-height)
             ents.add_cline(p1,p2)
             ents.add_text(number,p1.offset(Y_AXIS,6))
             number = number.next
             dist += inc
            end
            letter='A';dist=0;inc=24
            0.upto(height/inc) do
             p1=p0.offset(Y_AXIS,-dist)
             p2=p1.offset(X_AXIS,width)
             ents.add_cline(p1,p2)
             ents.add_text(letter,p1.offset(X_AXIS,-6))
             letter = letter.next
             dist += inc
            end
            

            Component Grid.gif

            Nothing is worthless, it can always be used as a bad example.

            http://sdmitch.blogspot.com/

            1 Reply Last reply Reply Quote 0
            • PixeroP Offline
              Pixero
              last edited by

              Thats great. Can you make it work with millimeter?

              1 Reply Last reply Reply Quote 0
              • sdmitchS Offline
                sdmitch
                last edited by

                @pixero said:

                Thats great. Can you make it work with millimeter?

                I would assume so.

                Nothing is worthless, it can always be used as a bad example.

                http://sdmitch.blogspot.com/

                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