Search found 4 matches
- 21 Jun 2013, 19:11
- Forum: CAD VCL
- Topic: Block preview in a gallery
- Replies: 5
- Views: 30663
Re: Block preview in a gallery
Hello Alexander, Thank you very much for your answer, you have solved my problem, and your sample code is exactly what I needed. I didn't know that I had to delete manually the PaperSpaceBlock (actually I'm not a DXF/DWG specialist and I don't know what it is exactly...). I will follow your suggesti...
- 06 Jun 2013, 12:45
- Forum: CAD VCL
- Topic: Block preview in a gallery
- Replies: 5
- Views: 30663
Re: Block preview in a gallery
Hello, Please note that if I keep only this part of my code into DrawBlock, I do not have any access violation (but it draws the complete model of course...) : procedure TsgCADImage.DrawBlock(canvas:TCanvas; Block: TsgDXFBlock; DestRect: TRect); var vInsert: TsgDXFInsert; vLayout: TsgDXFLayout; oldL...
- 05 Jun 2013, 21:28
- Forum: CAD VCL
- Topic: Block preview in a gallery
- Replies: 5
- Views: 30663
Re: Block preview in a gallery
Thank you Alexander for your answer. This how I create, use and free CADImage (I think the access violation is the most important problem to solve) : procedure TFrameDXF.DrawVignettes(fileName:string); //var (...) begin sgImg:=nil; vFileExt := ExtractFileExt(LowerCase(FileName)); case StrIndex(vFile...
- 21 May 2013, 16:31
- Forum: CAD VCL
- Topic: Block preview in a gallery
- Replies: 5
- Views: 30663
Block preview in a gallery
Hello, I'm trying to create a gallery in my application. This gallery should display thumbnails for each block found into a DXF/DWG File. First solution I tried : Create a new TsgCADImage for each thumbnail, copy the block entity to it from the original TsgCADImage (using assignEntity, and also copy...