blocks becoming invisible and visible depending on zoom

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Paul from ATRIUMsoft
Posts: 4
Joined: 21 Oct 2009, 22:02

blocks becoming invisible and visible depending on zoom

Post by Paul from ATRIUMsoft » 21 Oct 2009, 22:25

I am using vb.net and 6.0.2824 of the CADImport.net.

We are adding layers and Block References with RealDWG.
When zooming in and out of the drawing, certain blocks appear and disappear based on four factors.

1. If you zoom in a long way all entities appear, If you zoom out some entities disappear at a certain point.
2. If you switch off or freeze one particular layer that we added and put entities on, the missing entities suddenly appear on the other layers.
3. We have some dialog windows that pop up for other functions and if you drag one of these windows over the cadviewer it repaints the 'missing' entities whereever the window travels over one, but whenever cadpicbox.invalidate is invoked to redraw the contents they always disappear again.
4. Bizarrely also, if you drag the drawing around the screen some of the invisible entities reappear at the extremities (four corners of the viewer).

The drawing appears fine at all levels of zoom in the later version's downloadable vb demo and also in dwg trueview.

NOTE: Apart from the disappearance of certain entities based on zoom level, the software is ready and has been shipped to a client, so I don't necessarily wish to recode in a later version of the software if it can be avoided.

Put simply, is there a different way I can refresh the screen or is there something like a different entity selection mode or buffering mode I can use, or is this a known bug in v6? Is it perhaps that I have simply done something wrong with the layers and entities I have been adding?

For me the biggest clues are:-
1. The problem manifests itself with entities and layers added by my code.
2. If you drag a window over the cad viewer the missing entities appear as if by magic, but any call to cadpictbox.invalidate makes them disappear every time.

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

Re: blocks becoming invisible and visible depending on zoom

Post by support » 23 Oct 2009, 13:20

Hello.
The CADImport .dll assembly version 6.0.2824 is outdated. Please download latest version of CAD Import .NET 6 package:

http://www.cadsofttools.com/download/cadimportnet6.zip

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

Paul from ATRIUMsoft
Posts: 4
Joined: 21 Oct 2009, 22:02

Re: blocks becoming invisible and visible depending on zoom

Post by Paul from ATRIUMsoft » 23 Oct 2009, 15:49

Thanks for that but,I have created a new version of my project and copied this dll in now I get over 102 errors (at which point it stops counting).

SelectExt is not a member
CurrentLayout is not a member
Type CADEntity is not defined.
etc,etc.

Looking at previous posts by other forum members, it would indicate you might have pointed me to a standard version where we previously had the professional (fully licenced of course).
Is this correct?
If so do you have the link for the download or do I need to contact you directly via email?

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

Re: blocks becoming invisible and visible depending on zoom

Post by support » 23 Oct 2009, 16:05

I gave you link to the common CAD Import .NET package. For compiling your project you need extended package. Please mail to support@cadsofttools.com for extended package receiving.

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

Paul from ATRIUMsoft
Posts: 4
Joined: 21 Oct 2009, 22:02

Re: blocks becoming invisible and visible depending on zoom

Post by Paul from ATRIUMsoft » 23 Oct 2009, 18:11

Alexander,
I have emailed support now to ask for the correct dll thanks.
Note: a small part of the email text was highlighted in yellow, this was accidental.
Regards
Paul

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

Re: blocks becoming invisible and visible depending on zoom

Post by support » 23 Oct 2009, 18:22

Thank you for your request. Information about correct dll was forwarded to your mailbox.

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

Paul from ATRIUMsoft
Posts: 4
Joined: 21 Oct 2009, 22:02

Re: blocks becoming invisible and visible depending on zoom

Post by Paul from ATRIUMsoft » 23 Oct 2009, 19:39

Thank you, its resolved the zoom bug, just giving it a full test run now.

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

Re: blocks becoming invisible and visible depending on zoom

Post by support » 26 Oct 2009, 12:51

CAD Import .NET current release is 7. It differs by enhanced functionality and some fixes. Please test it if you want:
http://www.cadsofttools.com/download/cadimportnet.zip

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

Post Reply