autodesk-viewer

How to implement a Forge Autodesk model-aggregating viewer?

北战南征 提交于 2019-12-11 16:45:18
问题 I'm currently doing an internship in a company specialized in BIM. My mission so far consists in implementing a Forge Autodesk viewer, suited for the aggregation and the display of multiple models. I've managed to code a working viewer, and to find a supposed way to aggregate models, but I can't understand how to make them work together. I've already implemented a viewer, following the Forge Autodesk tutorial, and found on the Forge Autodesk blog an article about viewing multiple models with

Wireframes extension unload lines on every update

狂风中的少年 提交于 2019-12-11 15:19:04
问题 I'm using this wireframe extension https://autodeskviewer.com/viewers/latest/extensions/Wireframes/Wireframes.js which I slightly modified its colors. If I slightly move the camera, all the lines disappear and since our app constantly get input from the sensor, we end up with the lines always not showing. I can't find what is making those lines disappear. How can I make those to always be visible? It also happens in this example which you can reproduce: 回答1: Another way to avoid this issue

Forge Viewer: Show bottom toolbar and markups at the same time

偶尔善良 提交于 2019-12-11 15:17:56
问题 I'm developing a tool that allow's several users to add markups to the same autocad drawings. I also want the users to be able to use the bottom toolbar of the forge viewer to hide/show layers and the properties popup. The markup extension is good to add svg markups, however it hides the bottom toolbar of the forge viewer when entering the edit mode. It seams that the only way to show the bottom toolbar of the forge viewer is to call the .hide() method on the extension object which will hide

Translation of zip file (contains object and material file with different colors) results to a viewables of single color

半腔热情 提交于 2019-12-11 15:07:39
问题 Till a few days back the translation was working as expected. I was able to see the viewables with the color scheme mentioned in obj and mat file. But now same translation is giving wrong results(viewables). It applies only one color to all the objects and nodes !!! 回答1: This is now fixed, thanks for reporting. 来源: https://stackoverflow.com/questions/56322902/translation-of-zip-file-contains-object-and-material-file-with-different-colors

Accurate bounding box of an object

风流意气都作罢 提交于 2019-12-11 09:48:07
问题 I'm trying to create an accurate bounding box of an object, but it appears that if the object isn't aligned with the axis (I think) the box is not aligned with the object. For example: The pink and closer orange vertices are the Box3.min, Box3.max of this wall, but you see the red and green and blue are not on that wall. You can ignore the aqua vertices. This is the code that creates the bounding box (returns Box3): static getWorldBoundingBox(model, dbId) { return new Promise(async(resolve,

3D drawing in lines, not displaying 3D in Viewer

北慕城南 提交于 2019-12-11 08:17:51
问题 I have a 3D DWG drawing of only points and lines. I uploaded and translated it, with output format: 'type':'svf', 'views':[ '2d', '3d' ] In front end, geometryItems = Autodesk.Viewing.Document.getSubItemsWithProperties(document.getRootItem(), { 'type' : 'geometry', 'role' : '2d' }, true); Viewer shows 2D drawing, as if been flattened. If I change 'role' from 2d to 3d, viewer doesn't show up, because geometryItems.length == 0. Any way I can show 3D drawing with line/point in 3D, please? Thank

Problems with getting the properties of an ID when looping over all Ids

北城以北 提交于 2019-12-11 07:13:19
问题 I'm interested to get the properties of all dbId elements. For this purpose I'm simply looping over my array of dbIds and use the getProperties function provided by the Forge Viewer. someFunction() { const instanceTree = this.viewer.model.getData().instanceTree; const allDbIds = Object.keys(instanceTree.nodeAccess.dbIdToIndex); console.log('all DbIds'); console.log(allDbIds); // This will give the correct Properties // this.viewer.getProperties(5, (result) => { // console.log(result) // })

viewer.impl.disableRollover(true); not working

落爺英雄遲暮 提交于 2019-12-11 06:54:30
问题 Seems like something changed in Forge's library as suddenly viewer.impl.disableRollover(true); has stopped working. Would anyone kindly confirm or deny this? 回答1: Try that: viewer.disableHighlight(true) Keep in mind that every method under viewer.impl. is NOT part of the public API and is subject to change from one version to another. 来源: https://stackoverflow.com/questions/47060059/viewer-impl-disablerollovertrue-not-working

Picking under elements of an element in Autodesk Forge viewer

心不动则不痛 提交于 2019-12-11 06:39:59
问题 I would like to accomplish a feature that I can do in Three.js but cannot in Autodesk Forge viewer. Here is the link to test: http://app.netonapp.com/JavaScript/Three.js/select_inner_objects.html The requirement is to select objects inside an object. This job can be done with THREE.Raycaster in the above demo, to use a raycaster to detect all elements which are on the line the ray going through. Then I can get objects behind or inner another object. I tried this concept in Autodesk Forge

Forge viewer 3ds Max Viewport

二次信任 提交于 2019-12-11 04:36:44
问题 I'm testing out a new workflow with 3ds Max and my model/scene keeps loading in Top view when I translate it into the Forge viewer. I've tried to save the view as a perspective view but I'm still getting the same result in the viewer. In Revit I remember that I could choose the view from the Collaboration settings. How would I modify the view in 3ds max? I'm translating a MAX file. Thanks a lot. 回答1: 3ds Max does not have the same idea of a "named 3d view" like Revit does. 3ds Max mainly