Windows 11 causes PNG in our titleblocks to disappear

Windows 11 causes PNG in our titleblocks to disappear

mikeh2
Collaborator Collaborator
1,921 Views
9 Replies
Message 1 of 10

Windows 11 causes PNG in our titleblocks to disappear

mikeh2
Collaborator
Collaborator

We have a PNG company logo in our title blocks and have for many years.  With Windows 11 if we create a new IDW from template or open an old file the PNG file will not show up in any of the title blocks.  If we edit the title block it doesn't show up in any way and can't window select it.  If I edit a file where the PNG doesn't show up and insert a random PNG it shows up.  I thought maybe it was a windows 11 PNG viewer causing the issue, but I can insert another PNG and it shows up.  We have 4 PCs running windows 11 and they all do it.  I could recreate the IDW going forward, but that doesn't help the hundreds of thousands of IDWs we already have out there.

 

We're currently running IV2021 and aware that it's not Windows 11 compliant, so also tried it in IV2022 and IV2023 with the same results.

 

Anyone have any ideas? 

Thanks!

@johnsonshiue 

0 Likes
1,922 Views
9 Replies
Replies (9)
Message 2 of 10

Gabriel_Watson
Mentor
Mentor
I have no Win11 to test here, but even in 2024 beta your file opened ok.
Try these fixes and search for Windows 11 issues with opening bitmaps.... I think you'll find some similar articles like the ones below which you could test with their solutions:
https://answers.microsoft.com/en-us/windows/forum/all/cannot-open-jpeg-png-bmp-or-gif-file-container...
and
https://answers.microsoft.com/en-us/windows/forum/all/photos-and-images-not-opening-on-windows-11/6d...
Message 3 of 10

mcgyvr
Consultant
Consultant

@mikeh2  Try to edit the titleblock definition and delete and then add the SAME image again.. Does that work?

 

I wonder if this is related to the registry association issues we used to have a long time ago where jpgs,etc... needed to be reassociated with paint to work correctly.. 

 

Which program does that image open with when you just try to open the image itself outside of Inventor? Windows Photo? 

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 4 of 10

mikeh2
Collaborator
Collaborator

Thanks guys

I can't even delete it as I can't select it or where it's supposed to be.  It's like Inventor or Windows 11 is stripping it off.  I don't have that exact PNG anymore as it's embedded in the title block and that title block was probably created 15 years ago and migrated thru the years.  I can drop in a new PNG and it works as expected, but it strips off the one embedded in the titleblock/file.  If I just view a random PNG through windows explorer they open fine so I don't think it's the viewer.  I think it's the viewer built into Inventor or what Inventor utilizes to view that PNG.

 

Appreciate the thoughts

0 Likes
Message 5 of 10

mcgyvr
Consultant
Consultant

@mikeh2 I've attached a copy of your logo and also included some ilogic coding you can run that should go through and delete the image (you had 6 embedded images in that file for whatever reason).  To run the rule just open the drawing.. Go to Manage Tab and press the "ilogic browser" button to open it.. Then on the "Rules" section of the ilogic browser right click in the open area and select Add Rule.. Then paste this code into it and select save and run. 

 

ThisApplication.SilentOperation = True 
 
 Dim oPartDoc As Document = ThisDoc.Document
 Dim bSaveDoc As Boolean = False
 Dim oRefOleFileDesc As ReferencedOLEFileDescriptor 
 
 While oPartDoc.ReferencedOLEFileDescriptors.Count > 0 
	 
     For Each oRefOleFileDesc In oPartDoc.ReferencedOLEFileDescriptors 
          'Debug.Print oRefOleFileDesc.ReferenceStatus 
          
          If oRefOleFileDesc.ReferenceStatus() = 49668 OR 49666 OR 49669 Then 
         

          '49668 = kMissingReferencE
             'Debug.Print (oRefOleFileDesc.DisplayName) 
              oRefOleFileDesc.Delete 
              oPartDoc.Dirty = True 
              bSaveDoc = True 
          End If 
        Next oRefOleFileDesc 
      
      If bSaveDoc = True Then 
          oPartDoc.Save 
          bSaveDoc = False 
     End If 
 End While
' oPartDoc.Save 
' Be sure to set this back to False 
 'ThisApplication.SilentOperation = False 

 

  



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 6 of 10

mikeh2
Collaborator
Collaborator

@mcgyvr 

Thanks for the thoroughness and promptness.  Forgot about the links.  Typically there's an error when it doesn't find a file.  So stepping through this manually to try and understand the Inventor commands.

 

So under links and embedding it's showing that it found all of them.  Presuming their embedded as I can't break a link, don't have the option and I have write access to the file.  Why 6 images?  So we have 2 title blocks in our IDW 1 for purchased parts and 1 for make parts and each one has the image in it.  So that explains the last 2.  If I delete the Title blocks they disappear.  The other 4 remain which I believe are from us having 4 sheets in a prior life for each IDW.  When we went to the current template we probably did save as and deleted the sheets and evidently embedded files stuck around.  I can't find anything else to delete.  Is there  a way to delete those last 4 manually?

 

We have 160,000 idws that are locked down with items and Vault Pro, so we can't run your routine to remove and reinsert the logo via task scheduler.  We could do that Via iLogic and event trigger each time they are opened in vault and go thru a revision.  Although this is a solution it still seems that there is a bug there with windows 11 and Inventor getting stuck on the embedded files.

 

For the PNG you attached.  Did you harvest that directly out of the template or did you edit the image from within the inventor file under Windows 10 or earlier and then save it?  Essentially recreating it?

 

Thanks!

0 Likes
Message 7 of 10

johnsonshiue
Community Manager
Community Manager

Hi Mike,

 

Was the titleblock image inserted via Manage -> Insert? Or, it was inserted as an image sketch?

Many thanks!



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes
Message 8 of 10

mikeh2
Collaborator
Collaborator

Hi @johnsonshiue

Honestly can't tell ya how I created it as I would have created it about 20 years ago.  That was the companies 50th anniversary logo which would have been around 1998 so I'd say it originated between 1998 and 2000.  Yikes- reality check on my age and where the time went.  But if I had to guess I would say your correct it would have been done by Manage > Insert or what was available at the time as that's how I would insert it now.

 

Thanks!

0 Likes
Message 9 of 10

mcgyvr
Consultant
Consultant

@mikeh2 wrote:

For the PNG you attached.  Did you harvest that directly out of the template or did you edit the image from within the inventor file under Windows 10 or earlier and then save it?  Essentially recreating it?

 

Thanks!


@mikeh2  I just opened your idw, edited the titleblock and right clicked and select "edit" on the image which opened it in paint then just saved it out as a new png file. 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 10 of 10

Yijiang.Cai
Autodesk
Autodesk

I can reproduce the issue in Win 11 OS, and tracked as [INVGEN-63686]. It has been sent to project team for investigation. Thanks!

Thanks,
River Cai

Inventor Quality Assurance Team
Autodesk, Inc.
Email: [email protected]
0 Likes