SketchUcation Premium Membership

 

 

New Developer Export to PDF can it be done?

New Developer Export to PDF can it be done?

Postby umen » Tue Aug 07, 2012 8:50 am

Hello all
im new to SketchUp pro , and in my job i need to develop some plugins to it .
first question is , can i export scene to PDF via code ? c++ or rubi.
if someone can send me link to reference or tutorial this will be great
Thanks allot for your help.
umen
 
Posts: 2
Joined: Tue Aug 07, 2012 8:44 am
Name: meir

Re: New Developer Export to PDF can it be done?

Postby Dan Rathbun » Tue Aug 07, 2012 10:24 pm

either Model#export()

or View#write_image()

You need to learn the basics of standard Ruby to use the SketchUp API.
(see link below)
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4069
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

Re: New Developer Export to PDF can it be done?

Postby umen » Wed Aug 08, 2012 2:09 pm

Thanks , but i didn't found any option to export to pdf .
maybe i missing something ?
umen
 
Posts: 2
Joined: Tue Aug 07, 2012 8:44 am
Name: meir

Re: New Developer Export to PDF can it be done?

Postby thomthom » Wed Aug 08, 2012 6:55 pm

None of them let you export to PDF.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17556
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: New Developer Export to PDF can it be done?

Postby TIG » Wed Aug 08, 2012 8:38 pm

You can write a .jar file that in turn uses Java code that makes a PDF [there are several libraries that do this - iText jar?] - perhaps from the data gleaned from an exported 'image file' [?]... then you can use API's UI.openURL(path2jar) on that file...
Not sure how easy it is to do... :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13927
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: New Developer Export to PDF can it be done?

Postby driven » Wed Aug 08, 2012 11:47 pm

I assume you mean 3D PDF, if so, you can buy a plugin that already does that.

http://www.simlab-soft.com/3d-plugins/3D-PDF-from-sketchup-main.aspx

john
driven
Top SketchUcator
 
Posts: 1409
Joined: Fri May 01, 2009 11:50 pm
Name: John
Operating system: Mac
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Intermediate

Re: New Developer Export to PDF can it be done?

Postby Dan Rathbun » Thu Aug 09, 2012 7:48 am

Sorry, I assumed since it was on the menu that the export method would honor the ".pdf" file extension (at least for Pro editions.)

Just a thought.. if one has a PDF "Virtual" Printer installed (like a Fax Printer, or the MS XPS Printer,) perhaps a "print to file" scenario might work. (My Dad uses one of these fake PDF printers to create PDF files on his office desktop.)
User avatar
Dan Rathbun
Top SketchUcator
 
Posts: 4069
Joined: Tue Oct 06, 2009 3:06 am
Location: Florida, USA
Name: Dan Rathbun
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: education
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Developers' Forum

Who is online

Users browsing this forum: eph and 4 guests