Posts about Code Samples

March 15, 2021

Drag and Drop in Design Automation for Inventor sample

I wrote about how to Drag and Drop models into the Viewer, but how could it be done in case of the Design Automation for Inventor sample? One thing you'll need to find out is how to acces...

Read More

March 12, 2021

Use custom icons on the Viewer toolbar

When creating buttons, you can just add an image (png, svg, etc) to it relying on styles in the CSS, as done here as well. One problem is that the blue highlighting when hovering above th...

Read More

March 10, 2021

Add Viewer extensions to Design Automation for Inventor sample

I have a few articles on the sample application written by our team to help people create their own Configurator 360-like solutions. One question that came up recently was about loading a...

Read More

March 3, 2021

includeInherited option for search

Some properties shown in the Viewer's Property panel might be inherited from other objects. When using search(), inherited properties won't be taken into account. So it's possible to have...

Read More

March 1, 2021

Drag and Drop models into the Viewer

I wrote about adding models to the Viewer and moving them around in Dynamic model placement This can also be combined with the browser's built-in drag and drop functionality so that we ca...

Read More

February 15, 2021

Dynamic model placement

There is no built-in functionality to achieve this, but it can be done. The two steps are: (1) load the model, then (2) follow the mouse cursor and update the model's placementTransform (...

Read More

February 12, 2021

More on screenshots

We have quite a few articles on using getScreenShot() function of the Viewer in order to generate a picture of the model, e.g.: - Get Base64 Encode String of Screenshot with Markups - Scr...

Read More