Thanks for detailed reply. I tried to redirect stdout without success. Using contextlib, I can only suppress print("readFile"). Viewport-related warning messages are NOT suppressed. Strange...
import pyafrom contextlib import contextmanag…
Ooops. Yor are right.
I checked with our design team and found that the file was poorly drawn (with wrong offset values). Thus, enclosing_check function has no problem at all.
Sorry for wasting your precious time :'(
I will request our developers to check whether their tools (probably a little old version of AutoCAD) can handle my sample DXF files. Then share results as well as files.
Oh I see. Thanks for clarification. I have no expertise to propose a version.
Before writing the above post, I tested like this. Using KLayout 0.27.1, I created a very simple drawing with a single box and saved it with 5 different options (POLYLINE…