Cad Viewer has a problem on a specific layer #475
Replies: 1 comment 2 replies
-
this is a very common issue for some reason. Many CAD files that I deal with are drawn carelessly with lots of junk surrounding the actual content, often very far away like you have encountered. I don't know how CAD applications determine what the view limits should be. I assume they must be in the dxf somewhere because opening the file in autocad shows: The solution for ezdxf would be to set the view limits manually like in #451 or remove the junk entities by some criteria. For my own uses I have an algorithm which does this by looking for 'outlier' entities to remove. For this particular case, if the view limits are correct when a single layer is excluded, you could draw the document without that layer, record the view limits then draw the whole document then restore the limits |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I had a DXF file to view and I observed an unusual behavior. When I tried to view that file as it is, the resulting image is like below (very very far away):
Then I realised that a specific layer causes that problem. When I tried to view that layer using AutoCAD, result is below:

However, when I use Cad Viewer to view that layer, I can't see anything. Moreover, when I disable that layer on the original DXF, I can view the rest of the file without any problem using Cad Viewer. Can you check what is wrong with that layer?
The problematic layer: Problem.zip
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions