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 a code I'm trying to integrate to my viewer, at this point unsuccessfully.
The viewer I implemented : http://learnforge.autodesk.io/#/
The supposed way to display aggregated models : https://forge.autodesk.com/blog/supporting-multiple-models-new-modelstructurepanel
I should be able to select and display several loaded models in the same viewer (for example a model for a building and a model for the pipe network). However, I can't figure out how this script has to be added to my viewer.
I've already tried to contact the author, but he answered me he was not working with Autodesk anymore, and told me to ask the Forge support about my issue.
Thanks in advance !
Basically in simpler terms to aggregate models one will need to load them respectively:
viewer.start(model1URL, options); //first model
...
viewer.loadModel(model2URL, options) //second model
... //more models
See a simple live sample here
As was mentioned in Philipe's article you will need to subscribe to different events as opposed to single model like AGGREGATE_SELECTION_CHANGED_EVENT, Autodesk.Viewing.AGGREGATE_ISOLATION_CHANGED_EVENT, Autodesk.Viewing.AGGREGATE_FIT_TO_VIEW_EVENT etc when working with multiple models.
And starting from Viewer v6 the built-in model browser deals a lot better with multiple models and almost covers the functionality described in the article - you can look into the code sample there and come up with your own extension:
Related
I couldn't find Forge Viewer API demo site and don't know what it looks like. I appreciate it if you have some experience using it and answer questions below.
Can you put markup comments on 3D models easily?
When you update comments, are they automatically saved right after you click some update button?
Can you delete 3D model data easily?
Is it mandatory to upload 3D model data to the Autodesk cloud server when you use the Forge Viewer? I don't want to put design data outside of my service but want to see 3D model on a browser.
You can upload any model and check with Viewer through viewer.autodesk.com
We have a few options for markups on documents. this blog might be helpful. You can also take advantage of sprites and textgeometry for labeling your models
Depending on the method you'll need to implement an algorithm to save, store and load your markups.
The data you see with Viewer is the SVF(2) generated by a translation from a source file. To modify the source file, you'll need to run a Design Automation job.
You need to upload your models to a bucket in order to trigger a translation, generating an SVF(2) that can be rendered with Viewer (refer here).
Formats like gltf, pdf, and dwf can be loaded without the need for translations.
I am new to Autodesk Forge Viewer. I want to achieve something like this but using splitScreen Extension or in single viewer. Is it possible to do it? I am using Angular component Forge Viewer 7.
Unfortunately the splitscreen extension only supports synchronized navigation between the subscenes - that is you can only see different models in the subscenes from the same view/perspective.
Also see this sample here to achieve synchronized view in two separate viewers.
Autodesk Viewer doesn't seem to render Mass models that were created in FormIt and converted to RVT. I can only see the level delimiters.
I've tried both https://viewer.autodesk.com/ as well as a basic viewer app I built using the Forge tutorials. This is an important part of a system that I'm trying to put together using a few of the Forge APIs.
If Mass type elements cannot be seen in the Viewer, is there a modification I could do using Design Automation v3 that would make the models visible?
Per Eason's advice I added the 3D view to the view set and that enabled the model to fully render in the Autodesk Viewer. This config option can be found under Collaborate->Publish Settings. All models that I imported from FormIt started off with all their views deselected in the view set.
We are using the Autodesk Forge model derivative and viewer API's for sharing Revit models with our customers.
This works very well for almost all our Revit models. But currently we have 2 Revit models which use the same template, and with those 2 models the Forge viewer does not render these correct. It looks like we get some kind of exploded view, materials are not on the correct place etc (see images).
We assume it has something to do with the Revit template, but we cannot find it. Any suggestions?
Revit
Forge
As a suggestion, on Revit, go to publish settings and confirm the names of the 3D selected to be extracted. On Viewer, ensure you're showing the same view, you can see the name where you load a specific viewable.
I have found a workaround, it looks like the problem was the cars which I was using in the model. These were Revit families where a DWG import was used.
When removing the cars from the model all other materials where rendering fine in the Forge Viewer. I sended the model also to Forge support and hoping for a solution so I can use the cars again.
It is possible to update and save a custom text attribute in a Revit project hosted on BIM360 ?
Our customer's advisor say it is possible, but after taking a look to the Forge API I do not see any reliable way to do it.
I'm wrong or I've missed something ?
I guess they are referring out new API, Design Automation for Revit V3, the new V3 API is still in Beta, but it has the ability to do the following task related to Revit file, including modify your Revit model:
Create custom Revit family content
Automate model creation
Explore and analyze model data
Extract and produce automated reports
Modify existing models to maintain company standards
Automatically create documentation
Also please check Learn Forge about Modify Model as the sample on detail steps of implementation.