autodesk-forge

Forge Viewer - BimWalk Teleportation

一笑奈何 提交于 2021-02-11 16:49:22
问题 I wanted to use teleportation property of BimWalk extension in my own function of forge viewer. But, I was not able to find the implementation details of teleportation. Is there any way for teleporting to specific object of the model in forge viewer? 回答1: The simplest approach would be to mimic the mouse interaction to trigger teleporting and set the // when in first person mode const bimWalk = viewer.getExtension('Autodesk.BimWalk') bimWalkExt.tool.navigator.teleporting = true viewer.select

Forge Viewer - BimWalk Teleportation

纵然是瞬间 提交于 2021-02-11 16:47:24
问题 I wanted to use teleportation property of BimWalk extension in my own function of forge viewer. But, I was not able to find the implementation details of teleportation. Is there any way for teleporting to specific object of the model in forge viewer? 回答1: The simplest approach would be to mimic the mouse interaction to trigger teleporting and set the // when in first person mode const bimWalk = viewer.getExtension('Autodesk.BimWalk') bimWalkExt.tool.navigator.teleporting = true viewer.select

Instance of ModelStructurePanel in div outside the viewer GUI

风流意气都作罢 提交于 2021-02-11 14:46:31
问题 I am building an html page with model query functionality starting from the viewer. I have implemented some methods including viewer.getProperties () and viewer.getBulkProperties (). Working on these themes I realized that it would be very useful to create instances of the panels (modelstructure, properties etc ...) in elements external to the viewer (not in the docking panels), maintaining the functionality and if possible customizing them (for example showing the elements not -collapsed).

Access bim 360 file using design automation

你。 提交于 2021-02-11 14:34:15
问题 Specifying BIM 360 file (dwg or rvt) in Design Automation Workitem. When create a Design Automation Workitem, how can I specify a dwg or rvt file in BIM 360 as the input? and how can I upload the output file back to BIM 360? I just can't find a good sample of this. What I've done so far: Specify the Workitem file as in postman sample: { "activityId": "xxx.xxx+xxx", "arguments": { "InputFile": { "url": "https://SomeUrl.com/to/download/the/input/max/file", "verb": "get" }, "OutputFile": { "url"

Autodesk Forge: I created an app to translate CAD files, but cannot see properties for an assembly

烂漫一生 提交于 2021-02-11 14:19:31
问题 So I created a nodejs app to translate CAD files and to display them in the viewer. For .rvt files and individual Inventor components I can see the properties by going to Model Browser and clicking on each component, however, I cannot see properties for an entire Inventor assembly. How can I go about seeing assembly properties? I am using this sample: https://github.com/Autodesk-Forge/viewer-walkthrough-online.viewer Only change I made was set compressedUrn to true and added a rootFileName to

Default material for model in Forge Viewer

好久不见. 提交于 2021-02-11 13:23:40
问题 I'd need to have the complete model use a default material (e.g. grey color) and then use externally defined materials for each node. So I'm looking for some advice on two points: 1) Setting a default material on all nodes. 2) Setting the material / color for given nodes after they're fetched from an external source. Could this be done at some point before the model is loaded into the viewer? (i.e. server-side)? If not, can it be done in the viewer? 回答1: All geometry coming from Forge will

FORGE Viewer performance and error issue with big size file

青春壹個敷衍的年華 提交于 2021-02-11 13:20:52
问题 I had translated 500 Mb sized NWD file and tried to load it to FORGE Viewer. (I believe the NWD file has may graphical elements and objects) It takes around 4 to 5 Min. for loading which is slow after cache initialization and error occurs as below images after blinking web browser. error image 1 error image 2 Any advice or guide resolving this issue will be appreciated. Thanks 回答1: Here's a couple of options to consider when dealing with really large models: Use the Autodesk.MemoryLimited

Forge Viewer - Failed to parse OTG

醉酒当歌 提交于 2021-02-11 13:10:38
问题 I am using the Forge Viewer APIs to visualize OTG models (from our BIM360 account) into our web application. All used to work fine in the last few months but since this morning i started to receive some browser errors related to the OTG geometry Invalid OTG heders Failed to parce OTG geometry Failed to parse geometry ﵌䐮砦溔헜縗ﭤ촧퐤 Error loading mesh ﵌䐮砦溔헜縗ﭤ촧퐤 (some logs are displayed in chinese languange and all of them are repeated multiple times into the browser console) the result reflect an

InstanceTree unavailable in the mobile version of the viewer

眉间皱痕 提交于 2021-02-11 13:09:26
问题 I have a function who require the instanceTree of my model who works in the desktop browser. instanceTree = viewer.model.getData().instanceTree; dbIds = getAllDbIds(instanceTree); But in the mobile version of the viewer, the instanceTree from getData() seems to be missing for some reasons. Do you know a way to access the instanceTree in the mobile viewer ? Or is it possible to specify an option in the viewer to allow the mobile version to have access to it ? I'm in the version v6 of the

Forge Model derivative fails for large IFC files

大兔子大兔子 提交于 2021-02-11 12:32:26
问题 I was trying to use model derivative API for translating fairly large (~6GB) IFC file. I've used chunked upload for uploading file, and successfully finished uploading file to the server. However, after submitting job, model derivative process has exited with following message: messages":[{"type":"error","message":"Unrecoverable exit code from extractor: -1073741829","code":"TranslationWorker-InternalFailure"}] I was not able to correctly identify the issue further more; Would you please help