• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Example project

Scheduled Pinned Locked Moved LayOut Discussions
layout
13 Posts 3 Posters 4.0k Views 3 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.
  • G Offline
    gedw99
    last edited by 12 Jan 2011, 17:42

    Hey Jim,

    thanks, but i need skp and layout together.
    This is the only way to see the best technical approach to how i design with Sketchup.

    Ged

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 12 Jan 2011, 18:30

      Ged, if you right click on the embedded SU model in the LO document, there is a context menu item "edit in SketchUp" (or something like that). It will be opened in SU then (the skp file is actually in the layout file - rename it to zip and see the content there)

      Gai...

      1 Reply Last reply Reply Quote 0
      • G Offline
        gedw99
        last edited by 12 Jan 2011, 18:44

        Oh my god. I just tried it on my model here and your right.
        Layout is a self describing string based file format with the sketchup file encoded inside it.
        I never realized.

        Feel like such a dummy.
        Interesting possibilities.

        thanks again

        ged

        1 Reply Last reply Reply Quote 0
        • G Offline
          gedw99
          last edited by 12 Jan 2011, 18:51

          Gaieus ,

          The schema looks like most packing techniques.
          Are there any tools to serialise and de-serialise this schema ?
          Will help my worflow allot.

          Regards

          ged

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gaieus
            last edited by 12 Jan 2011, 19:05

            Sorry but I don't understand this last post. What do you want to serialise?

            On a side note, you can also insert rtf text files (just like images, skp files etc.). When adding text to your LO document, this is a good way (instead of typing into text-boxes). First, it can retain certain formatting elements otherwise you don't have. Second, in case your LO file gets corrupt somehow, these text files can still e found "inside".

            Gai...

            1 Reply Last reply Reply Quote 0
            • G Offline
              gedw99
              last edited by 12 Jan 2011, 19:27

              thanks - yes i can see the RTF elements int the xml doc.
              But the whole complete description of Font, lines, everything is of course there.
              Thats much more interesting to me.

              The way the Layout Schema is structured is a very standard software pattern these days. Its the same way that MS Word 2010 docs are structured when you un-zip those too. With The WOrd Automation API's you can load a word code and alter it in code. Its very powerful.
              SO what i am saying is that you can do exactly the same with Google Layout.
              I am kind of surprised Google did no Obfuscate the xml structure in some way; but that would be EVIL of course πŸ˜„

              Anyway serialise and de-serialsie means to take that XML and inject it into a memory structure in software. This is very easy. You can go both ways. Forward engineering and backwards engineer.

              Anyway, the end result is that you can then generate Layout documents from any Meta data !

              So if there is a formal Specification of the Schema Or a Java or C# object library that understands the schema my job would be 90% done.

              This is the schema for the Document Properties xml file for example:
              http://sketchup.google.com/schemas/layout/1.0/documentproperties

              It would make it very very simple to represent Layouts in a normal Web Browser using HTML5 and Canvas for example.
              You could also very easily make them editable in a web browser. SVG and Canvas libraries can do all this client side using just JavaScript. There are already other implementations out there for doing this with other Layout Schemas.

              But just saying its very very easy and well you would not need Google Layout anymore. Opps did i say that πŸ˜„

              Also now that i see that the PaperSpace viewports to the 3D world are just image instances, I can see why the PDF outputs are so crappy with Google Layout.

              I will stop ranting now.
              I wonder if there are other people here interested in this ?

              Regards

              Ged

              1 Reply Last reply Reply Quote 0
              • G Offline
                gedw99
                last edited by 12 Jan 2011, 19:37

                For example if you put this into a browser you will see the actual Schema definition for Pages in Layout:

                view-source:http://sketchup.google.com/schemas/layout/1.0/page.xsd

                From this you can generate Code in Java or c# to interact with the Data.

                Maybe this is the easiest way to explain it to you.

                Regard

                ged

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Gaieus
                  last edited by 12 Jan 2011, 19:39

                  OK, now I understand. But of course, I cannot answer any of your questions nor could I contribute with the slightest idea to all this.
                  πŸ˜„

                  @gedw99 said:

                  I can see why the PDF outputs are so crappy with Google Layout.

                  Are they? Maybe it's just some setting issue: I have never had any quality problems. You can set the output quality in the document setup to "high" and it will export at 300 dpi. That should be enough for anything. Also, hybrid and vector rendering mode makes sure to get the crispiest lines you can wish.

                  Gai...

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    gedw99
                    last edited by 12 Jan 2011, 20:00

                    i knwo what you mean but thats not what i mean.

                    I just tried exporting to PDF with the 3 different view-port settings.
                    The view-port set to "Raster" looks terrible because its static to resolution.
                    The view-port set to "Vector" looks much better. About 5 times better because its resolution independent.
                    The view-port set to "Hybrid" looks about the same as the "Vector".

                    All are set to "High" when exporting of course.

                    So moral of the story is to use Vector when Printing. Pretty simple. But takes allot longer i believe.

                    Ged

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gaieus
                      last edited by 12 Jan 2011, 20:40

                      Vector does not render image based textures so if you have also those in the model, use hybrid instead. If there are no image textures, there should not be a difference at all.

                      As for speed - keep it raster based until you get to export. And well, a bit of extra time to render it and export is worth if the quality is better.

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gedw99
                        last edited by 21 Aug 2014, 11:59

                        ok thanks for your help. response a bit late ...

                        G

                        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