Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Add a locally-stored image to a feature tooltip and adjust sizing

elliott.rosenfeld
Autodesk
Autodesk

Add a locally-stored image to a feature tooltip and adjust sizing

elliott.rosenfeld
Autodesk
Autodesk

1. Open the Style Palette

2. Click the Material tab.

3. Click the green plus icon in the top of the Material Catalog to create a new Material Catalog, and name it Tooltip Images.new_material_catalog.png

4. Click the green plus icon in the bottom of the Material catalog to add a new material to the catalog, and import your .JPG or .PNG image as the new texture. Click OK.

new_material.png

5. Close the Style Pallete.

6. Navigate to "C:\Users\username\Documents\Autodesk InfraWorks Models\Autodesk 360\model#\ModelName.files\unver\Content\Textures\imagefilename.xxx" on your local system using Windows Explorer, making sure to replace the text in red with your own specific filepath.

7. Copy the filepath for the image.

8. In InfraWorks 360, select the feature you want to associate with the image.

9. Right-click and choose Exit Edit Mode.

10. Right-click and choose Edit Tooltip.

11. Click the HTML editing tab.

12. Paste the following code into the HTML editing area, using your specific filepath.

Note: make sure to specify max-height, max-width, width, and height values that correspond to the size of the image you are referencing. Use numeric values only, do not include "px" or similar unit of measurement references.

 

<tooltip>
<style>
background-color: black;
max-width:xxx;
max-height:xxx;
border-color:black;
border-width:1;
border-style:solid
</style>
</tooltip>
<img src="file://C:\Users\username\Documents\Autodesk InfraWorks Models\Autodesk 360\model#\ModelName.files\unver\Content\Textures\imagefilename.jpg" height="xxx" width="xxx">

Here's what that should look like:

html.png

 

 

13. Click OK and hover your cursor over the feature to see the tooltip.

solar_tooltip.png

Note: Because you added the image to the material catalog, the local image will remain with your model when your model is exported/shared.

 

 


Principal Specialist, Infrastructure
Reply
2,071 Views
1 Reply
Reply (1)

Anonymous
Not applicable

Nice!

I've been looking for a way to add images without having to post them on the internet.

Thanks! 🙂

0 Likes