Learn R Programming

AutoDeskR (version 0.1.5)

makePdf: Convert a DWG to a PDF.

Description

Convert a publicly accessible DWG file to a publicly accessible PDF using the Design Automation API.

Usage

makePdf(source = NULL, destination = NULL, token = NULL)

Arguments

source

A string. Publicly accessible web address of the input dwg file.

destination

A string. Publicly accessible web address for the output pdf file.

token

A string. Token generated with getToken function with code:all scope.

Examples

Run this code
if (FALSE) {
mySource <- "http://download.autodesk.com/us/samplefiles/acad/visualization_-_aerial.dwg"
myDestination <- "https://drive.google.com/folderview?id=0BygncDVHf60mTDZVNDltLThLNmM&usp=sharing"
resp <- makePdf(mySource, myDestination, token = myToken)
}

Run the code above in your browser using DataLab