learn.forge.viewmodels | Learn Forge Tutorial : View your models | Runtime Evironment library

 by   Autodesk-Forge JavaScript Version: Current License: MIT

kandi X-RAY | learn.forge.viewmodels Summary

kandi X-RAY | learn.forge.viewmodels Summary

learn.forge.viewmodels is a JavaScript library typically used in Server, Runtime Evironment, Nodejs applications. learn.forge.viewmodels has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This sample is part of the Learn Forge tutorials.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              learn.forge.viewmodels has a low active ecosystem.
              It has 68 star(s) with 67 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 3 open issues and 14 have been closed. On average issues are closed in 236 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of learn.forge.viewmodels is current.

            kandi-Quality Quality

              learn.forge.viewmodels has 0 bugs and 0 code smells.

            kandi-Security Security

              learn.forge.viewmodels has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              learn.forge.viewmodels code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              learn.forge.viewmodels is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              learn.forge.viewmodels releases are not available. You will need to build from source code and install.
              learn.forge.viewmodels saves you 36 person hours of effort in developing the same functionality from scratch.
              It has 98 lines of code, 0 functions and 4 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of learn.forge.viewmodels
            Get all kandi verified functions for this library.

            learn.forge.viewmodels Key Features

            No Key Features are available at this moment for learn.forge.viewmodels.

            learn.forge.viewmodels Examples and Code Snippets

            No Code Snippets are available at this moment for learn.forge.viewmodels.

            Community Discussions

            QUESTION

            Forge viewer cache issue
            Asked 2019-Apr-11 at 14:26

            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:26

            At 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):

            Source https://stackoverflow.com/questions/55590728

            QUESTION

            How to paint the differences in red?
            Asked 2019-Feb-28 at 03:11

            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:11

            One possible approach would be to compare the properties by querying the viewer.model.getBulkProperties (dev doc here) or viewer.search (dev doc here) interface (whichever works better depending on your specific use cases) and to make external IDs:

            Source https://stackoverflow.com/questions/54906956

            QUESTION

            Why is the model not displayed?
            Asked 2019-Feb-18 at 07:48

            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:48

            Did 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?

            Source https://stackoverflow.com/questions/54741877

            QUESTION

            How to add a multiple models in the viewer?
            Asked 2019-Feb-11 at 02:45

            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:45

            Read 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:

            Source https://stackoverflow.com/questions/54586849

            QUESTION

            How to add a method to delete a object from the bucket?
            Asked 2019-Feb-01 at 17:25

            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:25

            Try pass in your oauth credentials as well:

            Source https://stackoverflow.com/questions/54480039

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install learn.forge.viewmodels

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Autodesk-Forge/learn.forge.viewmodels.git

          • CLI

            gh repo clone Autodesk-Forge/learn.forge.viewmodels

          • sshUrl

            git@github.com:Autodesk-Forge/learn.forge.viewmodels.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link