Extracting a picture from a form

Extracting a picture from a form

Anonymous
Not applicable
437 Views
4 Replies
Message 1 of 5

Extracting a picture from a form

Anonymous
Not applicable

Does anyone know how to pull a picture out of a form? We're converting modules made a long time ago into .Net, and we don't have copies of the pictures that went in the picture boxes. They're all reference drawings that we would really like back. I'd like to retrieve the originals, but I'll settle for print screens if I have to.

 

Thanks,

Mike

0 Likes
438 Views
4 Replies
Replies (4)
Message 2 of 5

adam.nagy
Autodesk Support
Autodesk Support

Hi Mike,

 

I don't have VB6 anymore, but I think the PictureBox control has the same properties as its equivalent, the Image control in VBA.

 

There you can do this to save the image to bmp using the built-in function of VB:

<code>

Private Sub CommandButton1_Click()

  Call SavePicture(Image1.Picture, "C:\temp\mybitmap.bmp")

End Sub

</code>

 

This DevCast might also be of interest to you, thought it's about AutoCAD VBA projects:

http://through-the-interface.typepad.com/through_the_interface/2009/04/devtv-autocad-vba-to-net-migr... 

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 5

Anonymous
Not applicable

I just realized I forgot to mention this is an iLogic form. I think the link has been broken on a lot of these images.

 

Mike

 

 

0 Likes
Message 4 of 5

adam.nagy
Autodesk Support
Autodesk Support

Hi Mike,

 

Is it a Global Form? In that case it would be quite easy to get the pictures from the "C:\Users\Public\Documents\Autodesk\Inventor 2015\Design Data\iLogic\UI\Form1.xml" (or whatever it's named exactly)

 

If it's a local form then I have to ask around.

 

As mentioned here it might be somewhere in the UiBuilder.dll: http://forums.autodesk.com/t5/inventor-customization/ilogic-form-injector/td-p/3550486  

 

Cheers, 



Adam Nagy
Autodesk Platform Services
0 Likes
Message 5 of 5

Anonymous
Not applicable

They are local forms, but I started looking at the file paths that can be found by clicking on the image in form edit mode. Then I clicked "Image" in the lower window, and then another click in the same row, but one column to the right. That brought up the browse button on the right which lead me to the original location of the files. After some digging I found all of the locations where the images had been stashed. I know this doesn't answer my original question, but it did the job. Unfortunately, I don't have the time to hunt this down any further. Thanks for all the help, though!

 

Mike

0 Likes