ixmilia / dxf

MIT License
218 stars 67 forks source link

Support for MLeader #204

Open Taylor-Reid opened 8 months ago

Taylor-Reid commented 8 months ago

Hi! I saw that MLeader is currently not supported by ixmillia, I was curious how difficult it would be to add support for that, and what would be needed? If I knew what was involved in adding support for a new entity type, I'd even be open to trying to add the support myself and add it to your repo, if that is acceptable to you.

brettfo commented 8 months ago

I'm unlikely to get to MLEADER any time soon, but new entity types are added by filling out the relevant section in EntitiesSpec.xml and re-running the build-and-test.cmd script at the root (because much of the code is generated from that XML file).

MLEADER entities appear pretty complex (hence, I haven't done it yet) and it will need many of the methods to be hand-crafted, instead of generated. The nearest example I can give to a complex entity that had some combination of generated and hand-crafted code was for HATCH.

The specification for MLEADER entities can be found here.

Taylor-Reid commented 8 months ago

Thank you, I'll take a look.