Forge Viewer Compass Rose - autodesk-forge

When viewing a model the view cube shows the orientation of the model in terms of top, bottom, left, right etc.
How would I display a compass rose graphic that would display in terms of North, South etc? Similar to Navis cube.
Note: Currently using V2.11 viewer.
Thanks

Update 2019-11-08: This whish list item, LMV-2837, has been implemented by our engineering team now. You can see the compass under the ViewCube with the viewer v7.6 by default!! Here is the snapshot:
=============
After v2.16, viewer has capability to display labeled axis lines, see here for more detail. But there still is no API available to add custom graphic to the viewer ViewCube in my experience unfortunately, in part because there has been no known user interest.
However, we are interested in your need for displaying custom graphic with the ViewCube and what benefits it would have for you. Could you share with us, please? If it cannot be shared publicly, you can sent those information to forge.help#autodesk.com.
P.S. Please don't sent any sensitive data or information of yours and your company to us.

Related

Apply cutplanes to heatmaps

I have a model with a few heatmaps and I'm trying to make the cutplanes work with them, but currently not achieving it.
I searched on the DataViz api documentation and I didn't found any information on it, even though I've noticed that on the DataViz reference app you can select by floor and it looks like a cutplane. Any idea?
Update: Good News! Heatmap gets cut planes supported now. (tested with v7.58)
=====
I got the confirmation from our engineering team. Unfortunately, the cut planes aren't implemented for the Heatmaps now, so we logged a wishlist item, LMV-6409, to add this support. You're welcome to track updates via sending an email to forge[DOT]help[AT]autodesk[DOT]com quoting this wishlist item id.

crop particular room/area from the forge viewer

We are using forge viewer(v7) in our web application.
Our requirement is to crop particular room/area from the forge viewer. For example, if we have shown a house model in the forge viewer then if a user select a kitchen(from menu or navbar) then the viewer should show only kitchen area (including all its objects like cabinets, burner, fridge, sink etc.) and all other objects/sections should be hidden. Similarly for bedrooms, baths etc. It will be just for viewing purpose at run time and not for any automation.
Does any help that how can we achieve this?
You could use the SectionExtension - mentioned here:
Create a section plane leaning against one object
Documented here:
https://forge.autodesk.com/en/docs/viewer/v7/reference/Extensions/SectionExtension/
This also has a function called setSectionBox(box) which might be best for what you want.
If you can figure out the extents of the room then you could pass those values to it.
Here is a blog post on getting room related information extracted to SVF:
https://forge.autodesk.com/blog/new-rvt-svf-model-derivative-parameter-generates-additional-content-including-rooms-and-spaces
The other option would be to find all the objects inside the given room and hide everything else. If there is a property for each object that specifies which room they are in, then you could do it based on that using Viewer.search()

Section floor view - Forge Viewer

I want to be able to filter my uploaded Revit buildings to display certain floors (e.g. basement, first floor, roof). I am aware that I can section the view from the toolbar but I want to section the view by tapping buttons (in my case, tree buttons: Basement - Floor - Roof).
I have been looking at this tutorial:
https://developer.autodesk.com/en/docs/viewer/v2/tutorials/basic-application/
But here I'd need to upload pre-sectioned models of all the tree views. Is there any other way, or would I go with the option from the tutorial?
You can control the section planes from the API, so you could create buttons that invoke the API and control how section planes are being set. Take a look at setCutPlanes method in the viewer API documentation.
Here is an article that illustrates how to use this method: Viewer setCutPlanes
You can also take a look at this blog post that expose how I used ThreeCSG (Constructive solid geometry) to perform boolean operations in the viewer and isolate walls specific to each floor: Boolean Operations in the Forge Viewer.
Hope that helps.

Autodesk Forge - Initial focus on 3d view

our initial focus within our 3d views needs tweaking. Currently it is zoomed out ~x2 too far.
Can anyone get me started in the right direction for the controls for this?
I've tried changing the cropregion/ section box etc in the original revit model, but that hasn't made a difference.
A simple way to handle that would be to position the camera as you wish then save the current state and restore it upon loading the model, see my blog post about managing viewer states: Managing viewer states from the API

Is there a Pay or Open Source World Map web widget that is larger than 440x220 and allows the water to be black?

For a project I just completed, I needed to show the winning selection of a poll in each country. Ultimately we used Google Charts API, because the other Google World Map products did not allow the color of the water to be customized. In this project the water needs be black so it blends with the web page it's on. The only problem with the Charts API version is that it's max size is 440x220.
I've been searching the internet for a while and I've been unable to find a better, larger more customizable World Map product.
Is there a larger than 440x220 World Map product, for pay or open source, that allows me to set the color of the water so that it blends seamlessly with the web page it's on?
The OpenStreetMap project has both web and application map producers, and you have no restriction on the size of the display map nor on the styline. Check out their wiki to get you started.
If you like the offerings by Google in general, have you seen the option for a maps visualization using Fusion Tables? Also, there is a May blog posting describing using Fusion Tables with dynamic styling that could be relevant.
I wrote a tool to create SVG maps : Make a clickable map which also has a world map
that you can customize to your liking: Create a world map using Makeaclickablemap
Hope this will help you or any other folks who are after a customizable world map!