Inventor Customization

Valued Contributor
Posts: 79
Registered: ‎09-23-2008
Message 1 of 2 (111 Views)

Saveas Case Sensitive?

111 Views, 1 Replies
10-15-2013 12:14 PM

Does Saveas really need to be case sensitive.


I just spent a lot of time trying to figure out why my addin wasn't working and all that was wrong is I had a capital P on png.


Dim sPath As String = System.IO.Path.GetDirectoryName(sIDWName) & "\PartsLists"


 Dim sFileName As String = System.IO.Path.GetFileNameWithoutExtension(sIDWName) & ".Png"


 Dim sFileName As String = System.IO.Path.GetFileNameWithoutExtension(sIDWName) & ".png"


Dim sPNGName As String = sPath & "\" & sFileName
        oCamera.SaveAsBitmap(sPNGName, 1124, 899)

Kent Keller

ADN Support Specialist
Posts: 288
Registered: ‎07-21-2006
Message 2 of 2 (76 Views)

Re: Saveas Case Sensitive?

10-18-2013 04:46 PM in reply to: KentKeller

This is odd behavior and I am able to reproduce it and have filed a change request (ID 1507740).  Another odd thing is that I only see it with png files. With the following test, I get all of the files created except for Testing2.PnG.


Public Sub SaveAsTest()
    Dim c As Camera
    Set c = ThisApplication.ActiveView.Camera
    Call c.SaveAsBitmap("C:\Temp\Testing1.png", 0, 0)
    Call c.SaveAsBitmap("C:\Temp\Testing2.PnG", 0, 0)
    Call c.SaveAsBitmap("C:\Temp\Testing1.bmp", 0, 0)
    Call c.SaveAsBitmap("C:\Temp\Testing2.BmP", 0, 0)
    Call c.SaveAsBitmap("C:\Temp\Testing1.jpg", 0, 0)
    Call c.SaveAsBitmap("C:\Temp\Testing2.jPg", 0, 0)
End Sub

Brian Ekins
Developer Technical Services
Autodesk Developer Network
Autodesk, Inc.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor