Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modifying a drawing using Google Apps Script

Has anyone found support for creating or changing a drawing using Google Apps Script? I've looked through the Google documentation, but I don't see any classes for drawing. I found out how to build user interface elements, but not drawings.

I'd like to have the drawing as part of a document or spreadsheet, but a stand-alone drawing would be good enough.

like image 290
Don Kirkby Avatar asked Jan 25 '12 00:01

Don Kirkby


2 Answers

It's not possible to do anything related to Google Drawings, embedded on files or not, up until today. The closest thing you have is ability to insert images (via urls), which you can do on spreadsheets and UIs.

You can always ask for this enhancement at the Apps Script issue tracker: http://code.google.com/p/google-apps-script-issues/issues/list

like image 178
Henrique G. Abreu Avatar answered Sep 23 '22 16:09

Henrique G. Abreu


I got an answer on a related question that is good enough to use as a workaround for this question. You may not be able to modify a Google Drawing directly through code, but you can generate a Windows Metafile image and then upload that to a Google Drawing as described on the Google Docs blog.

Until my feature request is completed, this will have to do.

Update

You can now create drawings through the Google Slides API. If you want that in a Google Drawing, Doc, or Sheet, you can copy it there.

like image 39
Don Kirkby Avatar answered Sep 19 '22 16:09

Don Kirkby