The image created doesn't contain selection of selected elements (using Application.ActiveDocument.ActiveView.GenerateImage method)

The image created doesn't contain selection of selected elements (using Application.ActiveDocument.ActiveView.GenerateImage method)

ol.nistratov
Contributor Contributor
300 Views
3 Replies
Message 1 of 4

The image created doesn't contain selection of selected elements (using Application.ActiveDocument.ActiveView.GenerateImage method)

ol.nistratov
Contributor
Contributor

I have tested this behavior on Navisworks 2025 and Navisworks 2026.

Steps to reproduce:

1. In Navisworks manage select an element in the Selection Tree.

2. Create image using  a GenerateImage method

var image = Application.ActiveDocument.ActiveView
    .GenerateImage(ImageGenerationStyle.Scene, 1280, 720, false);

3. Save image to the file and see result. 

 

Actual result:

Created image does not contain selected element.

 

olnistratov_0-1765521102446.png

 

Is this a bug, or I missed something?

It is possible to create an image with selected elements using Navisworks API? 

 

Thank you.

 

0 Likes
301 Views
3 Replies
Replies (3)
Message 2 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi,
I  was able to reproduce the issue.
To clarify, when I select an element via the Navisworks UI and export the image through the UI, the selected elements are highlighted in the exported image. However, this behavior does not occur when using the Navisworks API.
I will discuss this with the team and get back to you.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 3 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @ol.nistratov ,

 

I checked with the Engineering team, and they have requested that an enhancement request be raised to expose this functionality via the API.

Accordingly, I have submitted a ticket with the Engineering team. Please find the ticket details below:

Ticket Details: NW-62658


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 4 of 4

ol.nistratov
Contributor
Contributor

Hi @naveen.kumar.t ,

 

What is a flow of tracking this ticket? Will you publish update in this topic?

Thank you.