Author Topic: Working with plt files in C#  (Read 3312 times)

0 Members and 1 Guest are viewing this topic.

Binky

  • Guest
Working with plt files in C#
« on: May 26, 2011, 04:05:46 PM »
I have not been able to find much out there regarding plt files in net applications.  I got to thinking about using them in picturebox controls in place of sld files as Slide.ocx keeps giving me errors about trying to write to protected memory.  I could use bmp's but the file size is a non-starter (i.e. xyz.sld = 47kb while xyz.bmp 4015kb)

Anyway it was just a thought and was wondering if anybody else had the same thought.  I have searched and did not see much of anything out there.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Working with plt files in C#
« Reply #1 on: May 26, 2011, 04:16:51 PM »
don't use bitmaps, instead, use jpegs and/or png files

Of course, it all depends on what you are trying to do. Is the Slide.ocx source available? Perhaps it might need to be revised to correct the issue you are having or maybe look at building your own slide reader. The format is straightforward and shouldn't be too difficult to manage.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

Binky

  • Guest
Re: Working with plt files in C#
« Reply #2 on: May 26, 2011, 04:39:43 PM »
I thought about jpg's about 2 minutes after I posted the question, those are only 61k so will work.  I am writing a new detail library and wanted to include a preview of the detail.  A typical use of sld's and they were already created from the current (soon to be previous) library manager.  Plt files just popped into my head and I went on a internet safari to see what I would find not knowing if it would be the answer but curiosity had already set in.

I have not seen the source for Slide.ocx but there was this http://www.theswamp.org/index.php?topic=25953.15 where you had done some work on creating a Slide.dll that I had thought started with it.  I also ran across this post on Autodesk Discussion Forum http://forums.autodesk.com/t5/NET/Slide-ocx/td-p/3015812 where the first replay states that the 'ImageBox' control will take a sld without conversion, although I am assuming that he meant a 'PictureBox' control.

I think that jpg's will be the answer in the end.

Thanks