• Login
sketchucation logo sketchucation
  • Login
🤑 30% Off | Artisan 2 on sale until April 30th Buy Now

Structural Grid Component

Scheduled Pinned Locked Moved Dynamic Components
sketchup
6 Posts 4 Posters 2.1k Views
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 22 Jun 2015, 07:50

    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 22 Jun 2015, 08:01

      Thought image will help....


      image01

      1 Reply Last reply Reply Quote 0
      • U Offline
        utiler
        last edited by 23 Jun 2015, 01:15

        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?

        purpose/expression/purpose/....

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdmitch
          last edited by 23 Jun 2015, 16:07

          @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
          • P Offline
            Pixero
            last edited by 24 Jun 2015, 08:34

            Thats great. Can you make it work with millimeter?

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdmitch
              last edited by 24 Jun 2015, 14:06

              @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
              1 / 1
              • First post
                4/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement