Commit Graph

26 Commits

Author SHA1 Message Date
ᴩʜᴏɴᴇᴅʀᴏɪᴅ
f620d68c19 Removed outdated UTF8 declaration [ Other ] (#24528)
* Removed outdated UTF8 declaration

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-10-13 18:34:43 +02:00
wmayer
5763e959f6 Sheet: Improve handling of unsupported formulas
With the example file of issue 20299 the parser stops with an exception
and reads in the formulas only partially. This PR doesn't fix the issue
but avoids to raise an exception so that as much as possible will be
read in. For unsupported formulas a suitable message is printed with
the content of the cell.
2025-06-05 10:15:28 +02:00
wmayer
74f09bbf8d Sheet: Fix reading xlsx files
for the specs of the XLSX file format see:
https://jkp-ads.com/articles/excel2007fileformat00.aspx or
https://www.data2type.de/xml-xslt-xslfo/spreadsheetml/xlsx-format

In order to find the correct sheet file one has to first read-in
xl/_rels/workbook.xml.rels and save the relations of Id and Target.
The file xl/workbook.xml contains a list of sheet elements where for
each element the attribute 'r:id' is set. This attribute can be used
to look up for the actual data file.

This fixes issue 19757
2025-06-05 10:14:42 +02:00
Gonzalo
1f11be1059 Avoid error importing spreadsheet with deleted sheet (#19757)
This fix was proposed by pageeddie on https://github.com/FreeCAD/FreeCAD/issues/19757
2025-06-04 21:54:31 -05:00
Benjamin Nauck
3b4b4413f7 Removes an unnecessary fixme comment 2024-09-19 08:46:45 -05:00
Benjamin Nauck
38111f9511 Spreadsheet XLSX import: Fix bug causing xls import failing for some operators (#16336)
* Fix bug causing xls import failing for some comparisons

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Benjamin Nauck <benjamin.nauck@adlede.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-09 17:55:54 +02:00
Dov Grobgeld
e66e90b512 Fix run time errors with python3.12 and pyside6 (#13337)
* Change pyopen=open expression to from builtins import open as pyopen

---------

Co-authored-by: Adrián Insaurralde Avalos <36372335+adrianinsaval@users.noreply.github.com>
2024-04-30 00:28:01 -04:00
FEA-eng
f28bab977b SPREADSHEET: Update importXLSX.py 2024-04-03 18:47:23 +02:00
wmayer
4d3c9ce1c5 Sheet: Apply clang format 2023-09-10 16:01:37 +02:00
Petter Reinholdtsen
6b7f3c55b9 Use python3 as the interpreter instead of python (ie v2)
This fixes lintian warning "unusual-interpreter".

Part of the Debian edition of FreeCAD since 2023.
2023-07-01 03:09:19 +02:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
mosfet80
bed7b76524 remove Python2 code 2023-03-04 17:51:43 -06:00
Uwe
6943408cb2 [Spreadsheet] remove unnecessary Python check
we only support Python 3
2022-07-31 05:28:19 +02:00
Roy-043
5221175455 Spreadsheet importXLSX: Added floor and ceil functions. Fixed aliasRef is None issue.
See https://forum.freecadweb.org/viewtopic.php?f=3&t=61807&p=530473#p530413
2021-09-07 09:26:39 +02:00
luz paz
abf4c92280 Spreadsheet: Fix header uniformity + trailing whitespace
[skip ci]
2020-11-27 19:39:06 +01:00
Tobias Bossert
a7fb422f6d fixed xlsx import issue, now compatible with python 2.x and 3.x 2020-07-06 16:28:17 +02:00
Tobias Bossert
dd7563b5dc Fixed import from XLSX files
since getText() already returns a string, the encode() function results in a byte object which is not compatible with setAlias().
2020-07-06 16:28:17 +02:00
luz.paz
30d2e29e0c LGTM: various fixes for using string operator instead of numeric 2019-10-25 10:33:12 -03:00
Syres916
f083696b99 [Spreadsheet] Excel File Import fix Py3 bug
Please see discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=39653
2019-09-28 12:13:02 +02:00
Yorik van Havre
ce0f871cba py3 compatibility fixes 2018-10-27 16:04:51 -03:00
luz.paz
504f6583dd Typos
The stepcode typos aren't to be found upstream. Recomend we merge nonetheless.
2018-01-08 21:07:00 +01:00
Unknown
5e2159cb74 Typos, grammar & uniformiity
3rd party KDL typos have been submitted upstream https://github.com/orocos/orocos_kinematics_dynamics/pull/121
2017-12-13 00:10:46 -05:00
Kunda
a7414e5789 source typo fixes pt1 (only on py3 merged code)
issue 0002914
2017-02-27 11:32:47 +01:00
Ulrich Brammer
17266bbc83 update of xlsx-importer: new parser,
trigonomic functions give the same result in the FreeCAD-spreadsheet,
support of celltype "inlineStr".
2017-02-20 22:59:18 +01:00
looooo
69bde456bf py3: spreadsheet: gathering spreadsheet relevant commits:
356b3b5736d6a83a91050973f77db9fc005b8551 Update Arch,Fem,Material,Spreadsheet for py3 print
70967107210481e362eab1cef78d15b8ba08c300 py3: Fixes from last rebase
2017-02-18 08:19:25 +01:00
Ulrich Brammer
63c36ee342 Basic importer for Excel-spreadsheets 2016-08-06 20:32:14 +02:00