autodesk-forge

Get Revit Version of BIM 360 File using Forge

风格不统一 提交于 2021-01-29 15:20:33
问题 Is there a way to find the Revit version of a file on BIM 360 without downloading the .rvt file? I found a similar question here, and Eason's answer suggests using the Design Automation APIs; however, currently the Design Automation API only supports AutoCAD. I know there's a Design Automation for Revit in beta, but is there any way of getting the Revit version without DA4R? 回答1: Unfortunately, it's not possible currently. Both Forge Data Management API and Forge Model Derivative API won't

Switch AutoDesk Forge Viewer Environment from Local to AutodeskProduction

落花浮王杯 提交于 2021-01-29 14:33:04
问题 We are using autodesk-forge viewer to show 3D Models, We have a requirement as to load the models from the local environment and the auto desk cloud environment Previously we are using only local environment , Viewer initialized with the "env":"Local" let initOptions = { 'env': 'Local' 'language': 'en' } Autodesk.Viewing.Initializer(initOptions) Now we need to switch between the Local Environment and AutodeskProduction , is that Possible? To achieve switching, what cloud i have to do. Have to

Forge Viewer API: Bounding box for a specific element

淺唱寂寞╮ 提交于 2021-01-29 14:19:10
问题 I am using the following method for determining the bounding box of a specific element: MyViewer.select( [dbId]); var box = MyViewer.utilities.getBoundingBox(); This works but I wonder if there is a direct function to do this (similar to how getBulkProperties work), especially when I am running through a large number of dbIds in a loop. I also figured out that I can do this by finding the list of fragments of the element and calculating bounding box of each to calculate element's bounding box

Autodesk Forge Viewer getting fragment position

你说的曾经没有我的故事 提交于 2021-01-29 14:08:35
问题 I'm trying to get the position of separate meshes in a model (translated from a revit file). What I'm doing is to get fragmentProxy, then use getOriginalWorldMatrix() to get the THREE.Matrix4(). Then from the Matrix4, call getPosition() to get the THREE.Vector3 world position of the fragment. However, every mesh returns the same position value. Is that because of how the model is built originally? Or I have to get the fragment position using a different method? 回答1: Your process of retrieving

Is there a specification available for the Autodesk SVF format?

陌路散爱 提交于 2021-01-29 13:20:23
问题 I'm building a cross platform 3D viewing application in C#/C++ and would like to add support for Autodesk SVF files. I looked at Autodesk Forge but it has limited support for exporting to open formats such as OBJ, and Autodesk SVF does not appear to be the same format as the similarly named Simple Vector Format (http://www.svf.org/) as was stated here: https://forge.autodesk.com/blog/updated-little-more-detail-behind-autodesk-forge-apis-0 Is there a schema or specification available somewhere

Create a section plane leaning against one object

邮差的信 提交于 2021-01-29 12:32:48
问题 I need to create a vertical section plane leaning against a selected object. For example selecting an object like this I need to get a section plane leaning against the longest side of the object I'm using the viewer version 7.16 that offers a Section plane option in the right click selection but it works incorrectly. I am using the frags.getWordBounds method to get the box "around" the object and, using a little trigonometry, I have calculated the orientation, but I guess it's not the right

Attribute names for NWD files in Autodesk Forge viewer different from source Revit file

夙愿已清 提交于 2021-01-29 12:30:31
问题 When I search elements in the Forge viewer using a few parameters in the model that was translated from an NWD file, I find that the attribute names are different from the source Revit file. For example, there is a parameter called "Assembly Name" in the source Revit file, but this name is changed to "LcRevitData_Element:lcldrevit_parameter_-1150420" in the model that was translated from the NWD file. I found this out when I did a viewer.getProperties() and saw that for the "Assembly Name"

Extract and download model to local machine in OTG format

空扰寡人 提交于 2021-01-29 12:20:56
问题 According to https://github.com/wallabyway/OTG-client-sample, a new OTG format for the forge viewer has been released and it looks like it has siginificant improvement in performance as opposed to the traditional SVF format. Currently,we are using model derivative API to translate RVT/NWD files to SVF and download it to our local machine using the extractor from the following link: https://github.com/cyrillef/extract.autodesk.io The question is that how do I to translate the model into OTG

How to load two forge viewer in same application (Angular Forge Viewer component)

谁说胖子不能爱 提交于 2021-01-29 10:48:20
问题 I am adding two forge viewer in same application but I am using Angular Forge Viewer component. all model loads only in one model. second viewer not working. I think the issue is Angular Forge Viewer component is using same Id. 回答1: Looks like that has to do with the same container being used with a fixed element ID rather than a named ViewChild (see here). You can either modify the library to use named ViewChild or raise an issue on Github for the author to address this (Alan is very active

How to access the “Title” of a file from a BIM 360 “Plans” folder

╄→гoц情女王★ 提交于 2021-01-29 10:20:46
问题 We need to get the "Title" as seen here in the Plans folder of the Document Management page of BIM 360. So far I can only find it at version.Value.attributes.extension.data.viewableName where version is initialized as follows ItemsApi itemApi = new ItemsApi(); itemApi.Configuration.AccessToken = Credentials.TokenInternal; var versions = await itemApi.GetItemVersionsAsync(projectId, itemId); foreach (KeyValuePair<string, dynamic> version in new DynamicDictionaryItems(versions.data)) { var