Commit Graph

104 Commits

Author SHA1 Message Date
Roy-043
544bd1e7ea Arch: implement new get_param functions
Additionally 2 Arch_Window bugs were fixed:
* If the W1 value was changed the box tracker was not repositioned relative to the cursor.
* The WindowColor was not applied because of a typo in the code. De current default color is quite dark BTW.

Note that all dimensional values that were not really defaults, but just the last entered values, have been removed from preferences-archdefaults.ui. As a result the layout looks a bit strange. That will be improved in a next PR.
2024-01-18 15:43:15 +01:00
bgbsww
5b4d287034 Reverse misuse of list comprehension 2023-11-20 11:36:39 +01:00
bgbsww
f087c4b3ef Parse inventor format without commas between points 2023-11-20 11:36:39 +01:00
Roy-043
51fcdc16f9 Arch: Fix issue with getSceneGraph
Same issue as in #8171
2023-11-05 20:48:43 +01:00
wmayer
83d4080fe8 App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
Yorik van Havre
65b63a7fb4 Merge pull request #9687 from Roy-043/Arch-more-consistent-object-naming-and-labelling
Arch: more consistent object naming and labelling
2023-05-30 15:18:00 +02:00
Roy-043
cca6f4c3e7 Arch: more consistent object naming and labelling
Following the example of Arch_Wall:
- Fixed object name.
- Default label is translatable.
- Name argument should only be used for the label and not be translated.
2023-05-28 15:58:54 +02:00
Yorik van Havre
6a7b5f754f Arch: removed 'object' from command tooltips - fixes FreeCAD-translations/#221 2023-05-22 15:13:16 +02:00
luzpaz
129d5882a7 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
luzpaz
1c75bbb48a Arch: lint bad indentation, superfluous formatting (#9310) 2023-04-19 09:40:16 +02:00
luzpaz
bc1f217664 Arch: linting multiple imports on one line (#9281) 2023-04-18 16:23:44 +02:00
Roy-043
b8a7ba0c2e [Arch] Arch_Site did not handle movable children (#8510) 2023-02-17 10:09:53 +01:00
Roy-043
72849c53d5 [Arch] fix Arch_Site: fix transform issue 2023-02-12 22:21:03 +01:00
Roy-043
a7b3fabac0 [Arch] fix Arch_Site 2023-02-09 15:51:17 +01:00
Roy-043
117b53d6ea Arch: improve context menus (rebase 2) 2023-01-12 23:10:43 +01:00
Roy-043
42a74daa19 Arch: improve context menus (rebase) 2023-01-12 22:54:09 +01:00
luzpaz
e5b258610b Crowdin: [skip ci] fix string in Arch/ArchSite.py
Props to david69 https://crowdin.com/translate/freecad/6766/en-fr#6604817
2023-01-07 20:08:28 +01:00
Roy-043
bafe141745 Arch: Housekeeping: import translate from correct file 2022-07-21 10:17:03 +02:00
Uwe
3a50f95be4 Mod: remove some superfluous Boolean checks (#7213)
* Mod: remove some superfluous Python Boolean checks
2022-07-19 01:35:12 +02:00
marioalexis
aec0ae2d39 Arch: Replace Drawing functions with TechDraw functions 2022-02-21 13:17:09 -03:00
Chris Hennes
06a0e1e923 [Arch] Fix LGTM warnings 2021-09-28 10:29:45 -05:00
Łukasz Stelmach
7c26d67ebf Arch: Draw solar diagrams for timezones other than UTC and UTC-3
Use the value of tz parameter to set a timezone instead of -3 constant.

Make updates to TimeZone property trigger redrawing of a solar diagram.
2021-06-22 13:33:35 +02:00
Alex Young
79449b8ce9 Arch: removes unused imports
Removes unused imports as reported by LGTM.

There are exceptions: `import Arch_rc` is shown as an alert, but has side effects.  It's not clear what the best thing to do in those cases is, so I've left them for now.
2021-02-14 16:27:06 +00:00
Chris Hennes
8228d64ac4 [ARCH] Catch only Exception, not BaseException 2021-02-11 11:52:45 +01:00
Stefan Tröger
446ce21517 Remove ExtensionProxy and rely on default Python proxy for extensions. fixes #0004534 2021-01-30 16:00:48 +01:00
luz paz
67381e9579 Arch: Fix header uniformity and remove trailing whitespace 2020-11-16 14:51:53 +01:00
Yorik van Havre
742b6d416b Arch: Small code optimizations to the multicore IFC importer 2020-06-25 15:38:31 +02:00
Yorik van Havre
34825731a0 Arch: Added Wind Rose diagram to Arch Site 2020-05-28 15:23:42 +02:00
luz.paz
06a1099e2b [skip-ci] Fix typos
Found via codespell v1.17.0.dev0  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-04-27 11:29:32 +02:00
David Daish
c11ebcd43a Rewrote the function and method docstrings in an imperative style. 2020-04-22 12:17:08 +02:00
David Daish
14283ea3ee Moved __init__ docstrings into the class docstring 2020-04-22 12:17:08 +02:00
David Daish
5f0438fb9c Removed incorrect apostrophies. 2020-04-22 12:17:08 +02:00
David Daish
0c9fde600a Moved all module docstrings to the top of the file. 2020-04-22 12:17:08 +02:00
David Daish
d3f6d8d5ce Spellcheck 2020-04-22 12:17:08 +02:00
David Daish
1e5356ba3f Work on adding docstrings for archsite 2020-04-22 12:17:08 +02:00
luz.paz
8fb5c65736 Arch: [skip ci] fix header uniformity
This PR fixes header uniformity across all Arch files
2019-12-26 18:24:06 +01:00
Zheng, Lei
a3e88a399f Arch: relax Part::Feature type checking
For supporting Link inside Arch.
2019-11-17 13:03:42 -03:00
Yorik van Havre
a937461d6f Arch: Merge of PR #2259 - Fix ifc project 2019-08-14 16:04:52 -03:00
hlg
0dd7aaaeab Arch: populate and read compass rotation from and to IFC RC true north 2019-07-26 10:45:25 -03:00
Yorik van Havre
50c8513398 Arch: Bugfixes to Site's solar diagram 2019-07-16 18:52:09 -03:00
Yorik van Havre
3a988baac9 Arch: Fixed Site not grouping correctly 2019-06-03 23:21:49 -03:00
Yorik van Havre
c05bc0990c Arch: Further fix in solar diagram 2019-05-14 11:26:58 -03:00
Yorik van Havre
8987bd1df3 Arch: Re-added support for older pysolar 2019-05-10 23:05:41 -03:00
Yorik van Havre
ff1fb11af1 Arch: Site: Migrated the compass properties to the ViewObject 2019-05-09 15:17:12 -03:00
Yorik van Havre
af0cb40682 Arch: Removed Floor dependency of Site 2019-05-08 13:41:58 -03:00
Yorik van Havre
2177f4437b Arch: Fixed solar diagram for py3 2019-05-08 12:06:55 -03:00
luz.paz
0238906d38 Misc. typo and whitespace fixes
Found via `codespell`
2019-04-30 10:15:59 -03:00
furti
df57424c84 Scale the compass based on the site area
When the compass has a fixed size, it is either too big for small sites,
or too small for big sites, when using fit view. So the compass adapts
to the ProjectedArea of the Site now.
2019-04-29 12:38:00 -03:00
furti
9a741c0867 Arch: Add property to switch to true north
When enabled, the whole coin scene graph is rotated by the declination
property of the site. So one can see the whole geometry oriented like in
real life.
2019-04-29 12:38:00 -03:00
furti
f27f27ba48 Add property to calculate declination
When enabled, the declination will be calculated based on the compass
and site rotation.
2019-04-29 12:38:00 -03:00