ILoader examples

Hi,

 

Any help regarding how to use the TIFFLOADER would be nice.

 

I am looking to load tif files on a plan via automation.

 

Thanks Teus

 

Posted by: Teus Streef
Post date: 7/20/2006 3:52:13 AM

5 REPLIES

RE: ILoader examples

Hi Teus,

 

I'm not familiar with ILoader or TIFFLOADER. Can you post some links to documentation?

 

Posted by: Jason Newell
Post date: 7/20/2006 3:58:15 AM

RE: ILoader examples

The file is in the reference menu.(adding a reference file to the reference list. Same as adding Solid Edge object to the reference list)

 

It is called Tiff_Loader 1.0 Type Library. There is 2 other called Bmp_Loader and Jpeg_Loader as well.

 

 

 

I hope this helps

 

 

Teus

 

 

 

Posted by: Teus Streef
Post date: 7/20/2006 5:32:40 AM

RE: ILoader examples

Looking at the Type Library information, I don't really see any use for this API. i.e. I don't see any useful methods or properties that would allow you to do much with the file.

 

What exactly is it that you're trying to accomplish?

 

BTW, this API that you found is probably for internal Solid Edge use only. That's why we don't have any documentation for it.

 

Posted by: Jason Newell
Post date: 7/20/2006 6:03:36 AM

RE: ILoader examples

Jason,

 

Thanks for a quick reply.

I am looking to get the width and height of the tiff file. There is no easy way that I see of getting this info from a tiff.

 

Teus

 

 

 

Posted by: Teus Streef
Post date: 7/20/2006 6:08:24 AM

RE: ILoader examples

If found this and it works for what I need. Again thanks for your help Jason

 

---------------------------------------------------

 

Private Sub CommandButton2_Click()

Dim miDoc As MODI.Document

Dim miImage As MODI.Image

 

Set miDoc = New MODI.Document

 

miDoc.Create "C:\_a.tif"

 

Set miImage = miDoc.Images(0)

 

MsgBox "Height= " & miImage.PixelHeight & Chr(10) & "Width= " & miImage.PixelWidth

 

Set miImage = Nothing

Set miDoc = Nothing

 

End Sub

 

 

Posted by: Teus Streef
Post date: 7/20/2006 7:22:50 AM