autodesk-forge

How to view a local stored SVF files using the Forge Viewer?

 ̄綄美尐妖づ 提交于 2020-12-15 06:28:25
问题 I'm currently working on a project where I want to display a locally stored SVF-File in the browser using the Forge Viewer. I have already tried different approaches but none of them seem to work and I run into different exceptions every time. Here is how I try to do it using React and Typescript. This is the App.tsx where I load the Viewer Component: <div className="col-sm-8 fill"> <ForgeViewer /> </div> This is my Viewer Component: import React from 'react'; import {useEffect} from 'react'

Using Forge Javascript-based Extension in Angular app

℡╲_俬逩灬. 提交于 2020-12-15 06:09:56
问题 How do i use a Jasvscript-based Extension, for example the IconMarkupExtension from https://forge.autodesk.com/blog/placing-custom-markup-dbid in my Angular-based app. I tried the following: Import the Javascript file: import IconMarkupExtension from './IconMarkupExtension'; using the extension by defining in the viewerConfig: constructor(private router: Router, private auth: AuthService, private api: ApiService, private messageService: MessageService) { this.viewerOptions3d = {

Using Forge Javascript-based Extension in Angular app

浪子不回头ぞ 提交于 2020-12-15 06:08:42
问题 How do i use a Jasvscript-based Extension, for example the IconMarkupExtension from https://forge.autodesk.com/blog/placing-custom-markup-dbid in my Angular-based app. I tried the following: Import the Javascript file: import IconMarkupExtension from './IconMarkupExtension'; using the extension by defining in the viewerConfig: constructor(private router: Router, private auth: AuthService, private api: ApiService, private messageService: MessageService) { this.viewerOptions3d = {

Autodesk Forge Design Automation demo issues

故事扮演 提交于 2020-12-15 05:47:11
问题 I am trying to use this web app: https://inventor-config-demo.autodesk.io/ However, when trying to upload an Inventor Assembly (zipped, with .iam in the root and .ipt files in a subfolder called 'components') I get the following error: Internal error Try to repeat your last action and please report the following message: Structure needs cleaning 回答1: Tested your attached dataset and should be uploaded correctly now. 来源: https://stackoverflow.com/questions/65096019/autodesk-forge-design

Autodesk Forge Design Automation demo issues

梦想与她 提交于 2020-12-15 05:46:49
问题 I am trying to use this web app: https://inventor-config-demo.autodesk.io/ However, when trying to upload an Inventor Assembly (zipped, with .iam in the root and .ipt files in a subfolder called 'components') I get the following error: Internal error Try to repeat your last action and please report the following message: Structure needs cleaning 回答1: Tested your attached dataset and should be uploaded correctly now. 来源: https://stackoverflow.com/questions/65096019/autodesk-forge-design

How do I get a snapshot of the forgeviewer without markups

时间秒杀一切 提交于 2020-12-15 05:38:04
问题 How can i get a snapshot of the viewer and save it separately as an image? Thank you 回答1: This can be done by combining the Viewer3D#getScreenShot method and the renderToCanvas method of the Autodesk.Viewing.MarkupsCore extension, like so: async function getScreenshotDataUrl(viewer, width, height) { const markupExt = await viewer.getExtension('Autodesk.Viewing.MarkupsCore'); return new Promise(function (resolve, reject) { const canvas = document.createElement('canvas'); canvas.width = width;

How do I get a snapshot of the forgeviewer without markups

白昼怎懂夜的黑 提交于 2020-12-15 05:35:02
问题 How can i get a snapshot of the viewer and save it separately as an image? Thank you 回答1: This can be done by combining the Viewer3D#getScreenShot method and the renderToCanvas method of the Autodesk.Viewing.MarkupsCore extension, like so: async function getScreenshotDataUrl(viewer, width, height) { const markupExt = await viewer.getExtension('Autodesk.Viewing.MarkupsCore'); return new Promise(function (resolve, reject) { const canvas = document.createElement('canvas'); canvas.width = width;

Changing materials in Forge

坚强是说给别人听的谎言 提交于 2020-11-28 08:33:50
问题 We are currently making the client retrieve the object states when the page loads (which will cause the 'pending' objects in the model to turn into different colors). Then we poll for changes to update the coloring (Firstly: pending object gets colored when the viewer loads, and then we keep polling to check and change state again, to make Forge render those in a different color and store their old color/material. When the polling received a change that an object should no longer be colored,

Changing materials in Forge

一曲冷凌霜 提交于 2020-11-28 08:31:27
问题 We are currently making the client retrieve the object states when the page loads (which will cause the 'pending' objects in the model to turn into different colors). Then we poll for changes to update the coloring (Firstly: pending object gets colored when the viewer loads, and then we keep polling to check and change state again, to make Forge render those in a different color and store their old color/material. When the polling received a change that an object should no longer be colored,