Seth Hillbrand
11c6164934
Silence font replace warnings for libs
...
When loading schematics/pcbs, notification of font replacements might be
warranted but in libraries, this warning is not helpful and intrusive
2024-06-24 09:55:10 -07:00
Alex Shvartzkop
4e3488c2e0
Altium schematic import: fix power port styles.
...
Need to use the symbol name with style, like "VCC_CIRCLE", not "VCC".
Issue was introduced in d939004bbd
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18209
2024-06-22 06:45:26 +03:00
Seth Hillbrand
bcf6b620a8
Large rework of BEZIER_POLY
...
Add direct handling of quadratic beziers to save compute time and number
of points. Update cubic interpolation to reduce number of points
generated for a given smoothness
Cache data on open and used cached data to avoid multiple re-calcs
Remove minimum line length and number of segments and replace with
standard max error level. Allows us to specify the tolerance of bezier
interpolation
2024-06-18 17:55:41 -07:00
Mike Williams
a5e2615251
Revert "SCH/LIB SYMBOL: never allow null LIB_SYMBOLs in SCH_SYMBOL"
...
This reverts commit 0b187e7122
.
2024-06-12 13:30:29 -04:00
Seth Hillbrand
439c25fca9
Altium schematic parser: Add fraction pin placement
...
In the schematic libaries, pin positions that are off 10mil spacing need
fractional elements stored in a different location
2024-06-10 15:02:18 -07:00
Seth Hillbrand
1325701956
Altium SCH Lib updates
...
- Use pin-compatible line widths for symbols
- Handle circular arcs as circles, not elliptical arcs
2024-06-10 12:40:01 -07:00
Mike Williams
0b187e7122
SCH/LIB SYMBOL: never allow null LIB_SYMBOLs in SCH_SYMBOL
...
Also always always flatten incoming lib symbols.
2024-06-10 08:36:42 -04:00
Wayne Stambaugh
795a9eea60
Coding policy fixes.
...
This is primarily to change all instances of wxLogDebug with wxLogTrace
so developers do not have to sift through debugging output that is always
dumped. The only exception is for code blocks built in debug builds and
called on demand for dumping object states.
2024-05-23 07:59:45 -04:00
Alex Shvartzkop
546b2e3b91
Fix text justification in Altium schematic importer.
2024-05-08 15:13:15 +03:00
Alex Shvartzkop
5475359d00
More build time optimizations.
2024-05-06 04:39:28 +03:00
Seth Hillbrand
5bd94f118d
ADDED: Handle PIECHART in Altium import
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16895
2024-05-05 08:39:30 -07:00
Jeff Young
afcdfd85a7
Fix power symbol value field placement.
2024-05-04 23:49:43 +01:00
Jeff Young
c2fae3768c
Fix knock-on effects from b7f035964f
.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17924
2024-05-04 23:49:43 +01:00
Jeff Young
2d1bcbd222
Repair import of Altium arcs.
2024-05-04 15:47:43 +01:00
Jeff Young
8ec1016ccf
Repair Altium importer for coord system change.
2024-05-04 14:19:12 +01:00
Jeff Young
691c492d1e
Revert attempted Altium import fix.
...
(Like Eagle, Altium's coord system is "upside down" to
start with.)
2024-05-04 11:16:44 +01:00
Jeff Young
09c5b9df1d
Fix some breakage in Altium parser due to Symbol Editor Y-axis inversion.
2024-05-03 14:52:50 +01:00
Alex Shvartzkop
b5b65d0846
Fix some breakage due to symbol Y axis inversion in EasyEDA parsers.
2024-05-03 01:44:50 +03:00
Jon Evans
a95a3fa5c9
Altium: apply power filter to symbol libraries
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17922
2024-05-01 22:47:45 -04:00
Stefan
7ed755ac61
Handle piechart case for Altium lib import
...
This doesn't parse the data but it will let the user know what wasn't properly parsed.
2024-04-30 03:07:14 +00:00
Jeff Young
95136494b3
RIP LIB_PIN.
2024-04-20 12:10:31 +01:00
Jeff Young
d761b4f22f
RIP LIB_TEXTBOX and LIB_SHAPE.
2024-04-16 16:31:16 +01:00
Jeff Young
3efe504dcc
Collapse LIB_TEXT into SCH_TEXT.
2024-04-16 16:31:16 +01:00
Jeff Young
d77eae3e7e
Collapse LIB_FIELD into SCH_FIELD.
2024-04-13 15:42:13 +01:00
Jon Evans
4bc69183ab
Set description on Altium imported symbols
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16943
2024-03-05 23:08:11 -05:00
Alex Shvartzkop
defcb49ac8
Support Altium Schematic ASCII import
2024-02-29 20:49:20 +00:00
Jeff Young
aef87b9796
Push thickness handling down into EDA_TEXT::SetBold().
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17077
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14875
2024-02-25 17:28:52 +00:00
Jon Evans
d939004bbd
Fix use-after-free in Altium importer
...
If the library already contains a symbol with the same name,
SaveSymbol will replace the existing symbol,
which will invalidate a cached pointer.
2024-02-25 08:47:07 -05:00
Jeff Young
98cd040952
Set up default netclass wire & bus widths.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17024
(cherry picked from commit 2d7f4faf72
)
2024-02-23 16:53:35 +01:00
Jeff Young
2c49ba4252
Formatting.
...
(cherry picked from commit c75bb5d01a
)
2024-02-23 16:53:35 +01:00
Roberto Fernandez Bautista
420413969e
Altium: Don't create duplicate fields
2024-02-23 14:57:57 +00:00
Roberto Fernandez Bautista
1a6e6a06eb
Altium: Don't load library parameters with an owner for now
...
In Altium many objects can have parameters (including pins). For now
we will drop library parameters belonging to any sub-components of a
symbol.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17048
2024-02-23 14:57:57 +00:00
Alex
e55a803572
Altium schematic import: do not overwrite sheet name.
2024-02-07 05:06:49 +03:00
Alex
a32d5174a1
Altium schematic import: clear harness port list after parsing Additional.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16894
2024-02-07 05:06:49 +03:00
Alex Shvartzkop
0778a7d46d
Fix Windows build.
2024-02-06 00:38:21 +03:00
Alex Shvartzkop
be1bbda8ce
Altium: Fix bug when symbol uses multiple display modes on one sheet.
2024-02-05 22:36:30 +03:00
Alex Shvartzkop
d8c72e845c
Altium schematic: support component's DISPLAYMODE being a string.
2024-02-05 22:36:25 +03:00
Jeff Young
1ff36f23b8
Clean up stale TODOs.
2024-02-05 15:49:57 +00:00
Roberto Fernandez Bautista
079478f989
EDA_ANGLE: use constexpr for constant angles
...
Remove all statics in the class and instead use constexpr to
ensure correct ordering
2024-01-31 19:17:46 +03:00
Alex Shvartzkop
6ff3b0eb95
Altium schematic: remove border from symlib ellipse inner polygon.
2024-01-31 19:08:36 +03:00
Alex Shvartzkop
7f29ac39d8
Altium schematic: case-insensitive search for subsheet files.
...
Also fixes open polylines on sheet.
Also prevents adding polylines with less than 2 points.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16829
2024-01-31 17:57:10 +03:00
Alex Shvartzkop
1e5b68cb87
Altium schematic: add polygon inside filled ellipse.
2024-01-31 09:34:36 +03:00
Alex
6225ef69b6
Altium schematic import: fix power ports.
...
Use different symbol names for different port port styles.
Also fixes curved shapes construction.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16823
2024-01-31 08:22:27 +03:00
Alex
c64b74918f
Altium schematic import: put Template items on sheet.
...
So we can use variable resolution.
2024-01-31 07:00:02 +03:00
Alex
9ed735ef5d
Fixes for Altium/CircuitStudio schematic import
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16825
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16824
Adds support for Templates.
Also fixes symbols on schematic with multiple display modes.
2024-01-31 02:07:06 +03:00
Wayne Stambaugh
8975f26c26
Coding policy fixes.
2024-01-26 08:59:14 -05:00
Alex Shvartzkop
b7460f29b4
Altium schematic: fix properties parsing in old formats.
...
Leading "|" can be missing before "RECORD=28" in old formats.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16513
2024-01-14 13:12:47 +03:00
Ian McInerney
f2702b223c
Introduce base IO_MGR class and unify RELEASER objects
...
The IO_RELEASER is a thin-wrapper around a std::unique_ptr, but done
this way to allow easier addition of a custom deleter in the future if
something needs to call back into the IO_MGR.
2023-12-29 00:37:38 +00:00
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2023-12-27 21:10:01 -05:00
Ian McInerney
f8688a922d
Unify IO library descriptors
2023-12-27 16:34:59 +00:00