sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Word/PDF Sketchup ruby API

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 1 Posters 909 Views 1 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.
    • M Offline
      MaryamR
      last edited by

      Hello everyone,

      i'm exploring the possibilities given by Sketchup Ruby API, and i have a question is it possible to generate a Word or PDF documents that contains information extracted from Sketchup models ?

      thank you so much.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MaryamR
        last edited by

        Hello,

        for those who are interested i found the solution to my question:

        i installed the Prawn library using the ruby console in sketchup : Gem.install("prawn")

        then i used this code to generate an example of a pdf file:

        require 'prawn'

        Prawn::Document.generate('C:\Users\laptop-acer01\Desktop\test.pdf') do
        text 'this is a test file'
        text 'end of file.'
        end

        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