QCAD Version: 3.32.9
The DXF-file is programmatically created with Python using ezdxf the best Python library in the world for creating / changing DXF-files. It’s fully OpenSource and tries to be as close as possible to the “DXF standard”. It’s also a great place to learn a bit how DXF works. Learn more at GitHub - mozman/ezdxf: Python interface to DXF · GitHub and Quick-Info — ezdxf 1.4.4 documentation
To make things easier, I created a DXF template with different blocks and add them programmatically when needed. Opening this DXF files in BricsCad or AutoCad shows the intended drawing.
ezdxf also supports creating a multileader with a block attached to it. I’m using this as a BOM balloon which I add by adding a point where the leader starts and a point where the leader ends. Then the block is automatically attached by ezdxfwith the right DXF codes.
Opening the DXF in QCad however doesn’t show the BOM balloons but got a bunch of warnings on the console:
14:17:02: Debug: >>> RDwgMLeaderImporter::import
14:17:02: Debug: "RDwgServices::printErrorStackTrace: Not opened for read"
Warning: RDwgImporter::importEntity: entity NOT imported: 0x560472fa3000
14:17:02: Debug: >>> RDwgMLeaderImporter::import
14:17:02: Debug: "RDwgServices::printErrorStackTrace: Not opened for read"
Warning: RDwgImporter::importEntity: entity NOT imported: 0x560472fac7a0
14:17:02: Debug: >>> RDwgMLeaderImporter::import
14:17:02: Debug: "RDwgServices::printErrorStackTrace: Not opened for read"
Warning: RDwgImporter::importEntity: entity NOT imported: 0x5604763f9930
14:17:02: Debug: >>> RDwgMLeaderImporter::import
14:17:02: Debug: "RDwgServices::printErrorStackTrace: Not opened for read"
Warning: RDwgImporter::importEntity: entity NOT imported: 0x560476d3c840
14:17:02: Debug: >>> RDwgMLeaderImporter::import
14:17:02: Debug: "RDwgServices::printErrorStackTrace: Not opened for read"
Warning: RDwgImporter::importEntity: entity NOT imported: 0x5604747f21e0
14:17:02: Debug: >>> RDwgMLeaderImporter::import
14:17:02: Debug: "RDwgServices::printErrorStackTrace: Not opened for read"
Warning: RDwgImporter::importEntity: entity NOT imported: 0x5604710f6630
I have created a very basic DXF file with only the BOM balloon in it and attached it.
my_template.dxf (1.2 MB)