Files
IfcOpenShell/src/bonsai/scripts
Petru Conduraru 5d13791a01 Bonsai: make dxf2ifc.py example script skip unsupported DXF entities
The script called Polyline.get_mode() on every modelspace entity, but
that method only exists on POLYLINE entities, so any typical DXF
containing lines, circles or text crashed with AttributeError before
converting anything. Test for POLYLINE polyface meshes with
dxftype()/is_poly_face_mesh instead and skip other entities with a
message, only create the spatial containment relation when products
exist, and take the input/output paths from the command line (matching
obj2ifc.py) instead of a hardcoded input.dxf/test.ifc.

Fixes #2151

This change was written with the assistance of an AI coding tool.

(cherry picked from commit bb49822f2e)
2026-07-25 23:18:32 +10:00
..
2026-02-27 14:52:55 +05:00
2024-08-13 23:09:50 +10:00
2025-02-11 21:32:03 +11:00
2024-08-13 23:09:50 +10:00
2026-01-26 17:13:18 +05:00
2026-01-26 17:13:18 +05:00
2026-01-26 17:13:18 +05:00
2026-02-26 17:12:46 +05:00
2026-01-26 17:13:18 +05:00
2024-09-20 22:03:19 +05:00
2026-01-26 17:13:18 +05:00
2024-08-14 16:49:34 +05:00
2024-08-13 23:09:50 +10:00
2026-02-27 14:52:55 +05:00
2026-02-26 17:12:46 +05:00
2024-08-13 23:09:50 +10:00
2024-08-13 23:09:50 +10:00
2026-02-26 17:12:46 +05:00