I wanted to know if there is some quick way to have the 'Revit Area items' available at the Viewer, via the self Viewer API or Model Derivatives preferably, or any solution that you have in mind of course will be aprettiated too. Thanks in advance.
To see the Revit area in Forge Viewer, you will need to include the area plan view in either the active view set of the Publish Settings.
Here are snapshots of my research.
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.
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.
On revit, in 3D view, I have some plumbing pipes with low/medium level of details, so they are just shown as a wire:
If I want to see them nicely, I move up level of detail and I see a nice pipe:
For some files, I cannot edit the original with Revit before sending to forge for conversion. I would like to know how can we see this pipe in forge viewer, even with low level of details?
For info, forge viewer has the element present in model hierarchy.
Thank you,
If I understand it correctly, you upload a "low details" Revit model (with plumbing pipes visualized as wires) to Forge, and in the Forge Viewer you would like to switch back to "full details"?
I'm afraid that is not possible. When converting the Revit model into a Forge Viewer format, all the original geometry is tessellated into triangle meshes, so there's no way to switch between levels of detail after that.
I have been looking at this, and noticed that if i upload the revit model to forge the pipework comes out as singleline, fittings in high detail.
in a similar way to opening a revit file in navisworks directly without converting to a NWC first.
so you can get around it by uploading a NWC file to forge. This doesn't solve the issue, as id prefer to upload the revit file directly.
I made a query about this previously but with further investigation I still have a problem. The two screenshots show the same component in A360 and in our Forge viewer. The behaviour in A360 is what we want with only the external geometry of the component visible. This used to be the case in our webapp but a change made to the Forge viewer at some point means all the detail in the component is now visible, including internal details. How can we replicate the behaviour we see in A360 in our forge viewer?A360
What you need to do is to force The viewer at startup using
options.isAEC = false
This will make the Viewer go back to the Highlight view that A360 is using at the moment.
I have set a specific orientation for my model in Revit, but as it gets loaded in the Forge Viewer is appears that the viewer overrides the coordinates of what I've set in Revit.
Where/how can I edit the "home-screen" for my model in the viewer?
There are two ways to do this in my experience, one is using Set current view as Home in the Revit ViewCube, another is using Viewer3D state API in the Forge Viewer.
In the Revit part, you can do this in this ways:
Open a 3D view, then duplicate it with an new name. Don't use the default name {3D}.
Set a specific camera orientation in this 3D view, then click the Set current view as Home in the Revit ViewCube to save current view as the default view.
Pick this 3D view in the Publish Settings to tell the Forge Model Derivative service to translate this for viewing in the Forge Viewer, then click save button to assign this 3D view as the Web view for the Forge.
Save this Revit project and upload it to the Forge for model translation. Forge Model Derivative service will use the camera position in the Home view you set in the above steps as the default camera position of the Forge Viewer.
In Forge Viewer side, you can do this:
Set a specific camera orientation in your viewer app, then call viewer.getStatus( { viewport: true } ) to get current camera state (One time only).
Remember this camera state somewhere.
Restore this camera state after all geometry is loaded via the viewer.restoreState( thisCameraState ) every time.
If you want to override the default Home view of the Forge Viewer, you can simply call viewer.utilities.autocam.setCurrentViewAsHome() after the step 3.
==== Update ====
If you still have some problem related to this issue, you can consider providing a reproducible case demonstrating that, I will gladly analysis for you. Those following items should be in the reproducible case:
A short exact description of what you are trying to achieve. The behavior you observe versus what you expect, and why this is a problem.
A complete yet minimal sample source model to run a test in.
A complete yet minimal Forge app that can be run and debugged with a simple procedure to analyze its behavior lives in the sample model.
Detailed step-by-step instructions for reproducing the issue, e.g. which element to pick, what command to launch etc.
If your reproducible case could not be posted here publicly, please send it to the forge.help#autodesk.com and remove sensitive data or information before you send.
Hope this help.