Skip to content

Adding DXF Image Export To CLI#228

Closed
snhobbs wants to merge 1 commit intogerbv:mainfrom
snhobbs:feature
Closed

Adding DXF Image Export To CLI#228
snhobbs wants to merge 1 commit intogerbv:mainfrom
snhobbs:feature

Conversation

@snhobbs
Copy link
Copy Markdown
Contributor

@snhobbs snhobbs commented Nov 22, 2023

Added dxf image export to the CLI. To maintain the --enable-dxf option I added a definition flag and a ifndef block in main.c. The stub in main.c will just complain about not actually being enabled.

PR for issue #227

@rampageservices
Copy link
Copy Markdown
Contributor

rampageservices commented Aug 20, 2024

Change looks simple enough for a merge. I don't see any major issues that would prevent this from being merged. It may be a good idea to prep this again with the mainline to ensure that it is able to be merged without issues. It has been 9 months since the last force-push. (I say this despite Github saying no conflicts with the base branch. Just a suggested fail-safe.)

LGTM

@spe-ciellt spe-ciellt changed the base branch from main to develop February 14, 2026 14:00
@spe-ciellt spe-ciellt changed the base branch from develop to main February 14, 2026 14:00
@spe-ciellt spe-ciellt changed the base branch from main to develop February 22, 2026 17:53
@spe-ciellt spe-ciellt changed the base branch from develop to main February 22, 2026 17:53
@spe-ciellt
Copy link
Copy Markdown
Contributor

Hello @snhobbs ! Thank you for the patch.
As someone said, looks simple enough to be merged. Could you rebase this onto the develop branch and force push it? I could fix it, but it is better if you do this.

spe-ciellt pushed a commit that referenced this pull request Feb 27, 2026
Cherry-picked from PR #228 (0a4e276), rebased onto develop.
Conflicts resolved: removed #ifndef ENABLE_DXF stub (function already
exists in export-dxf.cpp), adapted to develop's coding style and
existing --svg-layers help text.

Co-authored-by: simon <simon.hobbs@electrooptical.net>
@spe-ciellt
Copy link
Copy Markdown
Contributor

I will close this and open a new PR with a new branch addressing this, hopefully keeping the correct authors.

@spe-ciellt spe-ciellt closed this Feb 27, 2026
spe-ciellt added a commit that referenced this pull request Feb 27, 2026
* adding dxf export to command line tool

Cherry-picked from PR #228 (0a4e276), rebased onto develop.
Conflicts resolved: removed #ifndef ENABLE_DXF stub (function already
exists in export-dxf.cpp), adapted to develop's coding style and
existing --svg-layers help text.

* fix: guard DXF export in main.c with HAVE_LIBDXFLIB

When dxflib is not installed, export-dxf.cpp is not compiled and
gerbv_export_dxf_file_from_image() is undefined. Guard all DXF
references in main.c (enum, name arrays, switch cases, help text)
with #ifdef HAVE_LIBDXFLIB to fix the linker error on systems
without dxflib.

---------
Co-authored-by: simon <simon.hobbs@electrooptical.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants