💡 LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
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