Community
InfraWorks Forum
Welcome to Autodesk’s InfraWorks Forums. Share your knowledge, ask questions, and explore popular InfraWorks topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
elliott.rosenfeld
1873 Views, 1 Reply

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

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
Labels (1)
1 REPLY 1
Message 2 of 2

Nice!

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

Thanks! 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report