forge-digital-twin | Autodesk Forge application demonstrating various use cases | Runtime Evironment library
kandi X-RAY | forge-digital-twin Summary
kandi X-RAY | forge-digital-twin Summary
Autodesk Forge application demonstrating various use cases in manufacturing, specifically in context of digital twins.
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 forge-digital-twin
forge-digital-twin Key Features
forge-digital-twin Examples and Code Snippets
Community Discussions
Trending Discussions on forge-digital-twin
QUESTION
I am experimenting with this https://forge-digital-twin.autodesk.io/# using the gitlab code. I can display it locally (without the engine or dataflow) but I can not gain an access token.
I am using the VSCode extension and I get the code 401 (Unauthorized) error if I try to create buckets etc (hence why I am trying to get an access code). However, when I request one using this:
curl -i -X POST 'https://developer.api.autodesk.com/authentication/v1/authenticate' -H 'Content-Type: application/x-www-form-urlencoded' -d 'client_id=-----' -d 'client_secret= ----' -d 'grant_type=client_credentials' -d 'scope=data:write data:read bucket:create bucket:delete'
I get this error:
Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Content-Type: application/x-www-form-urlencoded" value of type "System.String" to type "System.Collections.IDictionary". At line:1 char:90
- ... ticate' -H 'Content-Type: application/x-www-form-urlencoded' -d 'cl ...
- ...
ANSWER
Answered 2021-Jan-21 at 21:38It defaults to Invoke-WebRequest. Try to use Invoke-RestMethod like this:
QUESTION
I need to show data(label with background frame) on objects in the autodesk viewer. I tried implementing this blog https://forge.autodesk.com/blog/placing-custom-markup-dbid and this is what I am trying to reproduce also I took reference from https://raw.githubusercontent.com/Autodesk-Forge/forge-digital-twin/master/public/scripts/extensions/issues.js
Things which I tried. 1.Placed .js file in my folder which the code inside 2.gave reference to the file in my html 3.loaded the extension as shown in the above sample 4.have all the bootstrap cdn imported 5.jquery cdn imported
I am able to get the half temperature icon button also extension accepts icon with db ids which I have provided and when clicked on button the icon and text both are not visible, extension executes which out any error but I am not able to see any reflection my viewer.
can any one help me what I need to check more in order to achieve this as I feel lot of things in the autodesk are been updated and I might be missing something
...ANSWER
Answered 2020-Sep-24 at 06:49The "issues" extension in the "forge-digital-twin" demo requires a specific server endpoint to get the data from, as you can see here: https://github.com/petrbroz/forge-digital-twin/blob/master/public/scripts/extensions/issues.js#L55-L57. You can replace these 3 lines of code and populate the this._issues
array in any way you want. For example, you could hard-code the values directly like so:
QUESTION
I am trying to load Inventor projects into my Bucket and display them in the Forge Viewer. For this I downloaded the Inventor example project (Jet Engine Model). I want to view it in the Forge Viewer just like here (https://forge-digital-twin.autodesk.io/).
I can upload single parts (.ipt) of the project onto my bucket without any problems. But I want to upload and view the whole project (like i do with Revit projects).
When I save the Inventor project as "Pack and Go" and upload the .zip file I get an error message:
...ANSWER
Answered 2019-Dec-20 at 15:08I'm not sure how the Inventor "Pack and Go" feature builds the zip file, but please note that when sending zip files to Model Derivative service for translation, the main design file must not be in any subfolder. The contents of the archive could look like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install forge-digital-twin
install dependencies: npm install
run server with all the required env. variables for example, on macOS: export FORGE_CLIENT_ID=<client-id> export FORGE_CLIENT_SECRET=<client-secret> export FORGE_MODEL_URN=<model-urn> export MONGODB_URL=<mongodb-connection-string> npm start or, when using Visual Studio Code, add this configuration to your .vscode/launch.json: { "type": "node", "request": "launch", "name": "Launch Express Server", "program": "${workspaceFolder}/server.js", "env": { "FORGE_CLIENT_ID": "<client-id>", "FORGE_CLIENT_SECRET": "<client-secret>", "FORGE_MODEL_URN": "<model-urn>", "MONGODB_URL": "<mongodb-connection-string>" } }
go to http://localhost:3000
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