View source: R/modelDerivative.R
| translateSvf2 | R Documentation |
Translate an uploaded file into SVF2 format using the Model Derivative API.
SVF2 is the next-generation viewer format: approximately 30
SVF and faster to load in the Autodesk Viewer. Use it in place of
translateSvf for new projects.
translateSvf2(urn = NULL, token = NULL, views = c("2d", "3d"))
urn |
A string. Source URN (objectId) for the file. Note the URN must be
Base64 encoded. To encode the URN, see, for example, the
|
token |
A string or |
views |
A character vector. Views to generate. Defaults to
|
An object containing the result, urn, and additional
activity information.
## Not run:
# Translate the "aerial.dwg" file into SVF2 format
myEncodedUrn <- jsonlite::base64_enc(myUrn)
resp <- translateSvf2(urn = myEncodedUrn, token = myToken)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.