• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Word/PDF Sketchup ruby API

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 1 Posters 909 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.
  • M Offline
    MaryamR
    last edited by 11 Feb 2016, 13:33

    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 12 Feb 2016, 09:21

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

      Advertisement