Jeff Young
dcaec78cc5
A bit more angle cleanup.
4 years ago
Jeff Young
1539fa5af2
Move SHAPE_ARC to EDA_ANGLE.
4 years ago
Ian McInerney
fb36e1b582
Revert caf406943e
and don't install the kicad2step lib
This fixes https://gitlab.com/kicad/code/kicad/-/issues/9944 and reverts
caf406943e
. The original fix caused issues
with some CMake versions because it tried to give library dependencies
to an object library, which can't have any library dependencies.
Instead, we need it as a static library, and since there is no need to
actually have it as an end-user library, it shouldn't be in the install
command.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9944
4 years ago
jean-pierre charras
5622a51193
Fix linking issue in kicad2step (double definition of some symbols)
4 years ago
Wayne Stambaugh
caf406943e
Do not install kicad2step build library object file.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9944
4 years ago
Seth Hillbrand
1b1bf8a17b
Better handling of escaped characters in STEP parser
Fixes https://gitlab.com/kicad/code/kicad/issues/9897
4 years ago
Ian McInerney
e57bde6582
Remove last vestiges of the KICAD_USE_OCE build flag
This build flag was removed in a previous commit, but some last uses
remained.
4 years ago
jean-pierre charras
a93c2c24fa
kicad2step: fix compatibility with OCC versions < 7.5
4 years ago
Seth Hillbrand
b3e2206377
Create specific writer for OpenCascade messages
Needed later for integration, so good idea to get framework set now
Fixes https://gitlab.com/kicad/code/kicad/issues/9694
4 years ago
jean-pierre charras
38d8e00d10
kicad2step, 3d_resolver: show a debug message only in DEBUG mode...
4 years ago
jean-pierre charras
5e6f490959
Fix kicad2step, incorrect export of oval holes in pads.
4 years ago
jean-pierre charras
6632cb056c
Fix issues with arcs in kicad2step, due to last kicad_pcb format changes.
Fixes #9409
https://gitlab.com/kicad/code/kicad/issues/9409
4 years ago
Marek Roszko
08940acf01
Fix compile error due
4 years ago
Jeff Young
5eb6b488f3
Formatting.
4 years ago
Jeff Young
d11c10252d
More changes to file resolvers.
Copy Kicad2Step fixes back to Kicad's file resolver.
Remove Kicad2Step's autogeneration of some variables in favour of
just reading the config file passed by Kicad verbatim.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Marek Roszko
a6fb687a0e
Fix rejection of default variables from exportpaths.cfg
Fix #7670
4 years ago
Jeff Young
9d35c551ba
More debug output for models that are not found.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Jeff Young
490cc42cb5
Remove vestiges of m_ConfigDir from Kicad2Step.
The converter uses paths passed in via a config file in the OS's
temp directory.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Jeff Young
24f3c49631
Fix logic error in FileResolvers.
If Normalize() was not needed after finding a searchpath then we were
never updating tname and just blindly returning it.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Jean-Samuel Reynaud
aa85bb27fa
Fix configuration phase on Ubuntu 18.04 (bionic).
Error messsage was:
"CMake Error at utils/kicad2step/CMakeLists.txt:68 (install):
install TARGETS given no ARCHIVE DESTINATION for static library target"
Perhaps cmake version (3.10.2 on bionic) need that since on ubuntu focal (20.04) there is no error (cmake is 3.16.3 on focal). As I see cmake 3.14 add an autodetection mecanism to find the destinations.
4 years ago
Marek Roszko
347e6f914d
Add OK button to close step export dialog
Because someone out there might shrink their titlebar to absurdly small sizes and then wonder why suddenly the UX is poor.
Fix #9192
4 years ago
Marek Roszko
b2ba86578b
Don't erroneously print "step file written"
Fix #9193
4 years ago
Jeff Young
a71d856e94
Ignore the drill oval keyword; x either equals y or it doesn't.
Fixes https://gitlab.com/kicad/code/kicad/issues/9193
4 years ago
Jeff Young
21313a4c1a
Don't exit when we fail to find a 3D model: there may be more.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Jeff Young
0ae17f1e63
Update Kicad2Step error messages to current terminology.
4 years ago
Jeff Young
48082e3234
Improve debugability of 3D file resolver failures.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Marek Roszko
ebda02255c
Fix step pcb coloring
4 years ago
Marek Roszko
4f861e084d
Give the board boards unique names in STEP exports
4 years ago
Marek Roszko
c84619cd7f
Undo APIEXPORT thats not required
I was doing a dll before a static and well. Our unit test system isnt setup to handle DLLs at all. Ugh
4 years ago
Marek Roszko
74fd23f573
Add (off by default) build option to link kicad2step directly into pcbnew
Because debugging it separately is annoying.
4 years ago
Marek Roszko
f42505b422
Expand the board in the step export to an assembly always
4 years ago
Jeff Young
61ef431c56
Apply fixes from Kicad2Step filename resolver back to Kicad.
4 years ago
Jeff Young
0e96ac4d7b
Improve logic and error reporting of Kicad2Step file resolver.
4 years ago
Simon Schaak
58dceb143f
kicad2step: fix "ignore virtual components" option
There isn't a "virtual" attribute any more, virtual components are now
saved without the "smd" and "through_hole" attributes.
4 years ago
Seth Hillbrand
7312bb4584
Fix compile error
4 years ago
Jeff Young
c861fadc31
Make 3D path resolvers agnostic about alias syntax.
Some code seems to think it's :alias:path while other code thinks it's
alias:path. This commit updates both the Kicad2Step resolver and the
KiCad internal resolver to be agnostic.
In 7.0 we should probably get rid of aliases entirely. But that's a
story for another day....
Fixes https://gitlab.com/kicad/code/kicad/issues/9002
4 years ago
Jeff Young
6960ac04d4
Cleanup & formatting.
4 years ago
jean-pierre charras
47d5682b14
kicad2step: fix compatibility with wxWidgets 3.0
(commit 4670309
uses 2 functions existing only in 3.1.x)
4 years ago
jean-pierre charras
4670309ec1
kicad2step: fix broken handing of UTF8 filenames.
the conversion between UTF8 std::strings and wxString were missing in some places.
3D model: fix management of file having double ext .stp.gz
Fixes #9038
https://gitlab.com/kicad/code/kicad/issues/9038
4 years ago
Jeff Young
4736578793
Fix long-standing typo.
4 years ago
Jeff Young
507b386c79
Rationalize STEP file warnings
1) Use consistent terminology and formatting
2) Capitalize STEP
3) Don't double-report errors in MessageBox and REPORTER
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
Wayne Stambaugh
d36fbb864f
KiCad2Step code cleaning.
4 years ago
Wayne Stambaugh
05a5a2416a
IDF code housekeeping.
4 years ago
Wayne Stambaugh
369d813a32
Pass std::string by reference instead of on the stack where applicable.
4 years ago
Marek Roszko
c794a6ce7a
Add pdb install option for msvc
4 years ago
jean-pierre charras
702c0d6f72
Step export: shows a report message if a 3D model is not loadable:
- When a vrml model is specified and model substitution is not allowed
- When the model substitution is allowed but the step model is not found
4 years ago
Jeff Young
4025603a1f
Formatting.
4 years ago
Jeff Young
2c1da70181
Write all variables to temp config file and have Kicad2Step use that.
Fixes https://gitlab.com/kicad/code/kicad/issues/7670
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
4 years ago
Seth Hillbrand
b891b5e1e2
Do not blindly substitute model names
Makes model substitution (VRML->STEP in STEP Export) optional. This can
prevent nasty surprises where the user doesn't see/can't affect the
outcome
Also, when substituting models, do not maintain scale factor. So a VRML
model with non-unity scaling will not be export as a STEP file (of the
same name) with non-unity scaling. This is the first step to address
https://gitlab.com/kicad/code/kicad/-/issues/1781
4 years ago