Slow behavior when loading a specific DWG

Discuss and ask questions about CAD .NET library.

Moderators: admin, support, SDS

Post Reply
Posts: 4
Joined: 23 Mar 2018, 12:39

Slow behavior when loading a specific DWG

Post by TomOle » 25 Apr 2018, 14:55

By the way I was fully successful and I'm totally happy after porting my code to CAD.NET coming from the former used CADDLL. As expected: the port solved almost all problems I had with the old CADDLL. Just one thing remained: I experienced a slow loading behavior with one specific DWG file - this applies to CADDLL *and* CAD.NET. That file weighs approx. 0,5Mb in size and needs ~10secs to load (via LoadFromStream()) - IMHO surprisingly long loading time...

It feels that a entity type "DWGPolyline" named "." ("\u000f.\u0003\u0015") (unicode?)
has something to do with it. I do not draw this entity and inspite of this there's nothing in the image absent but it seems to slow down loading significantly.

Is it possible to speed up the loading?

Best regards,

Posts: 2932
Joined: 30 Mar 2005, 11:36

Re: Slow behavior when loading a specific DWG

Post by support » 25 Apr 2018, 17:30

Hello Thomas,

Please send the DWG file which, in your opinion, loads slowly to the Technical Support e-mail, we will test it.

As for the DWGPolyline entity type, a corresponding entity class is internal and not accessible through the CAD .NET API. You should cast CADEntity type to CADPolyLine when reading DWGPolyline entities.

Technical Support E-mail:
Chat support on Skype:

Post Reply