Zoom Question

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Zoom Question

Post by prodriguezdlt » 06 Feb 2008, 03:47

Hi, is there any way that when i zoom (Paintbox example) in or out it doest repaint?
Cause im managing big dwg files with lots of layers and, everytime i hit the mause wheel for zooming it takes tooo long just to zoom 1 time, so it looks flickering, is there a way that it doesnt repaint?
like...mmm... when i zoom in more and more it just looks like it isnt repainting or something..thats what i want,, sorry for my bad english! i hope u get my question! jeje
Pavel

Everything is Posible!

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Post by prodriguezdlt » 06 Feb 2008, 03:50

Oh i forgot to tell, i tried this:
FsgPaintBox.Parent.DoubleBuffered:=True;
it helps but still it doesnt look smooth! i just cant zoom in properly, takes to long!

Everything is Posible!

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Post by prodriguezdlt » 06 Feb 2008, 03:59

Oh. sorry again....it alsa happиns when a layer comes visible, it redraws all of the layers instead of only drawing the new visible one over the others, i hope theres a way to improve this! Thanks a lot!

Everything is Posible!

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 06 Feb 2008, 10:34

Hello!
when a layer comes visible, it redraws all of the layers instead of only drawing the new visible one over the others
It is impossible for layer to be redrawn over the others. Entities of the layers may be placed one over another in the file. And redrawing some layer over the others we may corrupt an image.
it helps but still it doesnt look smooth! i just cant zoom in properly, takes to long!
It is normal for large files.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Post by prodriguezdlt » 06 Feb 2008, 12:55

So theres nothing we can do? just work slow there?, cause...
still have one doubt...it works good without flickering when the image is more zoomed (zoom in), at that point it doesnt flicker, is there anyway it could work like that when it isnt that much zoom'd??? thanks Sergey!

Everything is Posible!

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Post by prodriguezdlt » 07 Feb 2008, 00:30

I hope u can find a way to zoom images without repainting itll be the best!

Everything is Posible!

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Post by prodriguezdlt » 07 Feb 2008, 01:04

or what could it be, i consider it zooms slow cause it ist a laaargeee file, its weird cause i downloaded your ABViewer trial, and it also zooms slow, could it be my dwf file?, thanks! still, would love to know how to zoom without the image repaint! u know like Autocad does with his zoom, or when windows viewer zooms an emf file, some sort'a like that,, thanks a lot!

Everything is Posible!

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 07 Feb 2008, 09:23

Hi Pavel,

There are no means to make it faster. The only thing we can offer for the moment is if you send us your large files they will be used for testing when improving productivity of the library.
BTW: we made some tests and got that <b>CAD Import VCL</b> is as fast as <b>AutoCAD</b> in most cases.

Sergey.

Please post questions to the forum or write to support@cadsofttools.com

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Post by prodriguezdlt » 07 Feb 2008, 11:18

Thanks, but, then again, the diference that im talking about, is that, when im zooming, each time i zoom, it repaints, an lets say, from the image not zoom'd to the the image zoom at a 1:1 scale, with cad import it takes my like 10 seconds to get there, if i do this with autocad i take like one second, these because it doest repaint, the image set still but zooming like, zooming a jpg, but, would that be a problem only on my pc or what?, sorry if im bothering too much, but i think is a disadvantaje, as i said, im starting to believe its my computers fault, what do u think?, i can also send u a movie showing the diference im talking about! thanks

Everything is Posible!

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 08 Feb 2008, 17:57

Unfortunately we have no information how AutoCAD interacts with graphic device.
We work a lot on improving CAD Import VCL speed and there are appreciable results already. But there are no limits for perfection. We don't stop and CAD Import VCL becomes faster and faster.

Sergey.


Please post questions to the forum or write to support@cadsofttools.com

Roland
Posts: 11
Joined: 25 Apr 2008, 12:52

Re: Zoom Question

Post by Roland » 25 Apr 2008, 13:05

This is one of the issues we had - when zooming in or out you can't interrupt drawing in CAD import VCL. We also work a lot with very large DXF/DWG files.

We did manage to modify the source code so that you can interrupt the drawing when you want to zoom in or out. This way you don't need to wait for it to finish drawing before zooming (or turning layers on/off etc.). Responsiveness is greatly improved.

If you're interested in the modified code perhaps Sergey can suggest a way we could exchange it.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Zoom Question

Post by support » 25 Apr 2008, 13:38

Hello Roland,

Thank you for the offer. Please contact us to support@cadsofttools.com to discuss this question.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

prodriguezdlt
Posts: 49
Joined: 06 Feb 2008, 03:26
Location: Mexico

Re: Zoom Question

Post by prodriguezdlt » 26 Apr 2008, 06:10

Thanks Roland, it would be great if u could heko me with your code improvement,....im sending a mail to support right now to see how can this be done...thanks a lot.
cheers
Pavel
Everything is Posible!

Post Reply