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
Word/PDF Sketchup ruby API
-
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.
-
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
Advertisement