Bug with function GenerateImage on Navisworks Manage 2024

Bug with function GenerateImage on Navisworks Manage 2024

andrea_alpiniYNYBC
Participant Participant
191 Views
3 Replies
Message 1 of 4

Bug with function GenerateImage on Navisworks Manage 2024

andrea_alpiniYNYBC
Participant
Participant

Hi i tried to create image by :

 

                using (Bitmap viewBitmap = doc.ActiveView.GenerateImage(
                    ImageGenerationStyle.ScenePlusOverlay,
                    1024,
                    768,
                    true))
                {
                    if (viewBitmap != null)
                    {
                        viewBitmap.Save(outputPath, ImageFormat.Png);
                        System.Diagnostics.Debug.WriteLine($"[ExportSingleClashImage] Image SAVED at {outputPath}");
                        return File.Exists(outputPath);
                    }
                    else
                    {
                        System.Diagnostics.Debug.WriteLine("[ExportSingleClashImage] viewBitmap is NULL");
                    }
                }

for me it's important to have :
1) Overlays

2) Clipping Planes on

 

but overlays works, Clipping Planes Not

 

Thank you in advance for the help

 

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

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @andrea_alpiniYNYBC ,

 

I don’t quite understand your issue. Please explain it in more detail.
You mentioned using GenerateImage with Navisworks Manage 2024 — can you confirm the exact version you're working with?
Have you tried generating the image manually through the Navisworks UI? Does it produce the correct result?
Is this issue happening only when you use the API?
Also, please share both the expected output image and the one you're currently getting. This will help in identifying the discrepancy.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

andrea_alpiniYNYBC
Participant
Participant

Hi, thanks for your reply,

i'll try to clarify the issue.

1) version used : manage 2024 Update 2 Version 21.2.1413.45

2) problem  is present using API ( i need to develop new plug-in in c# using API that shall export images with Overlay and Clipping/Sectioning).

 

using (Bitmap viewBitmap = doc.ActiveView.GenerateImage(
                    ImageGenerationStyle.ScenePlusOverlay,
                    1024,
                    768,
                    true))

the true flag should be turn on the Sectioning but not works (see the attached files)

 

andrea_alpiniYNYBC_0-1749218470513.png

by API the sectioning not work( the green pipes appear but are outside of clipping volume)

andrea_alpiniYNYBC_1-1749218559238.png

by UI the clipping (sectioning) works perfectly.

andrea_alpiniYNYBC_2-1749218609513.png

 

this issue was already notified in Navisworks 2023

Solved: Bug with function GenerateImage on Navisworks 2023 (v20.2.1393.45 only) - Autodesk Community

 

Hope this help 
regards

 

0 Likes
Message 4 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @andrea_alpiniYNYBC ,

 

 

I just checked our internal tickets but couldn’t find any similar issues reported previously for Navisworks Manage 2024 Update 2.


I’m currently using Navisworks Manage 2024 Update 3.


I tested the scenario using the files I have, but I wasn’t able to reproduce the issue.


For now, I recommend that you send me a simple, non-confidential sample file.

Since you’ve already shared the expected and observed results, I’ll test the file in my environment and update you with the outcome.


When sharing the file, please also specify which viewpoint I should use for testing, so I can accurately check if the issue is reproducible.


I’ll run tests in both Update 2 and Update 3 and let you know the results.

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network