learn.forge.viewmodels | Learn Forge Tutorial : View your models | Runtime Evironment library
kandi X-RAY | learn.forge.viewmodels Summary
kandi X-RAY | learn.forge.viewmodels Summary
This sample is part of the Learn Forge tutorials.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of learn.forge.viewmodels
learn.forge.viewmodels Key Features
learn.forge.viewmodels Examples and Code Snippets
Community Discussions
Trending Discussions on learn.forge.viewmodels
QUESTION
I am using this Node.js Forge sample to check the Forge workflow
When a model with the same name as another is uploaded to the bucket, it is overwritten but when it is translated older model is displayed in the Forge viewer.
I have set xAdsForce to True to enable re-translation at Forge end. But the issue with browser-side cache still persists.
This article -- AUTODESK mentions to set the HTTP request headers, but where do I exactly set them in this code -- on GITHUB ?
...ANSWER
Answered 2019-Apr-11 at 14:26At this line, pass xAdsForce: true
. It tells the translation to override existing translations. See SDK documentation and endpoint documentation. You can also delete existing manifest (aka translations) before posting a new translation.
Update
You can specify the expiration header with (between lines 29 & 30 on the mentioned sample):
QUESTION
I create a website using Forge-Viewer, it implements loading several models in one window, as shown in this article https://forge.autodesk.com/blog/aggregate-multi-models-sequence-forge-viewer. I need to select two, almost identical files, which differ from each other only by the properties of one element, and paint over these differences in red. How can I paint the differences between two identical uploaded files red?
This is for a new site. I have already tried all the methods and recommendations available on the Internet,but none of them helped me solve my problem.
My code is fully consistent with the code from this source https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs https://forge.autodesk.com/blog/aggregate-multi-models-sequence-forge-viewer
I expect that I can finally paint the differences in red, but so far I have failed.
...ANSWER
Answered 2019-Feb-28 at 03:11QUESTION
I'm trying to implement multi-model model loading, but my loaded models are not displayed. My code is identical to this code https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs,the only difference is in the ForgeViewer.js file, where I use the code from this article https://forge.autodesk.com/cloud_and_mobile/2016/02/model-aggregation-with-view-data-api-exposed.html. When writing function launchViewer (token, urn) I get this "GET error https://developer.api.autodesk.com/derivativeservice/v2/manifest/undefined?domain=http%3A%2F%2Flocalhost%3A3000 400 (Bad Request)", and without adding token, I do not get an error, but the models are not displayed. The oss.js file is completely identical to the file from the first article.
Below is the code for the ForgeViewer.js file.
...ANSWER
Answered 2019-Feb-18 at 07:48Did you successfully and completely translate the model (see tutorial here) and supply a based64 encoded object ID (e.g. var urn = btoa('urn:adsk.a360betadev:fs.file:business.lmvtest.DS5a730QTbf1122d07')
) of the model to the load method?
QUESTION
I am creating a site with a forge-viewer and want to view multiple loaded models in a single window. How can I enable the function of loading and viewing several models in one place?
This is for a new site. I have already tried all the methods and recommendations available on the Internet,but none of them helped me solve my problem.
My code is fully consistent with the code from this source https://github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs
I expect that I can finally add the function of loading and viewing several models in one window, but so far I did not manage to do it.
...ANSWER
Answered 2019-Feb-11 at 02:45Read up on this and this series of blogs for a pretty thorough walkthrough on model aggregation with Viewer.
In a nutshell you will need to load different models using viewer.start for the first model and then viewer.loadModel for the others:
QUESTION
I want to create a method to remove already uploaded objects from the buckets. There is a method for uploading objects into the bucket, but there is no method for deleting them. Tell me how to do this?
I do it for the viewer autodesk Forge, the sources of which downloaded from here.
I tried to make it myself, but I failed. There were no changes to the downloaded sources, but in any case I can show my unsuccessful code.
...ANSWER
Answered 2019-Feb-01 at 17:25Try pass in your oauth credentials as well:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install learn.forge.viewmodels
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page