Commit Graph

182 Commits

Author SHA1 Message Date
Dino del Favero
736c22e8dd Updated links
Added links in english
2020-12-14 00:29:21 +01:00
Dino del Favero
d89c869124 Correct placementFromDXFOCS()
Corrected placementFromDXFOCS() function with the indications provided by Autodesk (TM)
http://docs.autodesk.com/ACD/2011/ITA/filesDXF/WS1a9193826455f5ff18cb41610ec0a2e719-7941.htm
http://docs.autodesk.com/ACD/2011/ITA/filesDXF/WS1a9193826455f5ff18cb41610ec0a2e719-793d.htm#WSc30cd3d5faa8f6d81cb25f1ffb755717d-7ff5
2020-12-13 23:59:47 +01:00
Yorik van Havre
dc97e31707 Draft: Small bugfix in DXF exporter 2020-09-09 14:38:16 +02:00
vocx-fc
6503d9351d Draft: move grouping functions to draftutils.groups module
These functions were previously in `draftutils.utils`,
and are related to grouping objects and finding objects
inside groups. These include `get_group_names`, `ungroup`,
`get_windows`, `get_group_contents`, `get_movable_children`.
These are imported in the main `Draft.py` module, so compatibility
is retained.

Modules which use these functions are updated; these include
Gui Commands like `Move`, `Rotate`, `Scale`, `AddToGroup`,
as well as objects like `DrawingView` and `Shape2DView`,
and `ViewProviderClone`.
The code inside the `importDXF` module is also updated.

The Arch Workbench uses many of these functions
but it does so from the `Draft` namespace, so these edits
don't change the situation for these commands.
2020-07-13 14:35:38 +02:00
Reinier Heeres
c0971eb5c1 Fix saving of DXF files (python3)
- Python3 does not allow to write strings to a file opened as "wb"; it
  expects bytes instead. Since ASCII DXF files are written using strings,
  the file should be opened as "w". Should be ok for python2 as well.
- See also issue 003862, https://tracker.freecadweb.org/view.php?id=3862
2020-06-09 11:53:02 +02:00
luz.paz
3b8b0451b1 AddonManager: [skip-ci] Change reference from "Addons Manager" to "Addon
...Manager"  
https://forum.freecadweb.org/viewtopic.php?f=3&t=45951&p=395355#p394147
2020-05-05 19:40:14 +02:00
Yorik van Havre
6f2fd04518 Draft: Fixed further regressions 2020-04-21 12:46:08 +02:00
donovaly
940af87f69 [Arch] split IFC dialog 2020-04-14 11:37:36 +02:00
UR-0
bb1c5cde7f DRAFT: import DXF version R12 minimalistic file with legacy importer 2020-03-19 12:21:39 -03:00
luz.paz
b3e42d103d [skip ci] fix follow-up typos 2020-03-06 14:50:35 +01:00
luz.paz
180805c55e Fix typos
Found via  
```
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-03-06 14:50:35 +01:00
luz.paz
ae7cb9e300 Draft: [skip ci] Fix header uniformity
This PR fixes header uniformity across all Draft files
2019-12-27 00:16:12 +01:00
Syres916
0d17b6faaf [Draft] ImportDXF Bug upgrading from 0.16
See discussion https://forum.freecadweb.org/viewtopic.php?f=3&t=41879
2019-12-26 15:52:30 -03:00
luz.paz
7b7797f4f3 Fix various (doxy) typos and whitespace issues
Found via `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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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`
2019-10-03 07:57:13 +02:00
luz.paz
a1984aeece Fix typos, grammar, and some whitespace issues
Found via `codespell -q 2 -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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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`
2019-09-07 11:58:38 -04:00
vocx-fc
e9f60b9191 Draft: importDXF, improved coding style, so it is closer to PEP8; spaces around commas and operators, and shorter lines (80 characters max) 2019-09-05 11:29:36 -03:00
vocx-fc
7969979686 Draft: importDXF, added docstrings to every function 2019-09-04 11:30:48 -03:00
Yorik van Havre
6fb468a1fe Draft: Export DXF objects with BYLAYER color if applicable 2019-08-28 22:48:57 -03:00
Yorik van Havre
60a54207ac Draft: Support for layer colors and linestyles in DXF import/export (legacy) 2019-08-27 22:59:35 -03:00
Yorik van Havre
4c63541a06 Draft: Proper support for layers in DXF import/export (py exporter) 2019-07-04 11:03:03 -03:00
Yorik van Havre
5bc05c28e6 Draft: Support of layers in DXF import 2019-07-03 21:49:50 -03:00
Yorik van Havre
8d237da7cb Draft: Keep using the already set working plane, if existing 2019-05-04 14:31:43 -03:00
Syres916
fad8fa4071 importDXF draftWPlane Fix
To fix error:
    w.Placement = placementFromDXFOCS(polyline)
  File "E:\Data\My Downloads\FreeCAD_0.19.16587_x64_Conda_Py3QT5-WinVS2015\FreeCAD_0.19.16587_x64_Conda_Py3QT5-WinVS2015\Mod\Draft\importDXF.py", line 422, in placementFromDXFOCS
    draftWPlane = FreeCAD.DraftWorkingPlane
<class 'AttributeError'>: module 'FreeCAD' has no attribute 'DraftWorkingPlane'
2019-05-04 14:31:43 -03:00
Yorik van Havre
e98bb1fc21 Draft: Fixed 0.18.1 bug in DXF importer 2019-05-02 16:09:36 -03:00
Yorik van Havre
61f94d4b7c Draft: Fixed DXF import with sketch mode on 2019-04-25 18:17:57 -03:00
DinoMesina
0fabc7fbe2 Add files via upload
Added the correct placement for 3D entities
2019-04-04 11:16:14 -03:00
wandererfan
45d8787110 Add pref for new Dxf Exporter 2019-03-28 10:44:33 -03:00
Yorik van Havre
de18975c14 Fixed six.py2 -> PY2 2019-03-17 20:59:08 +01:00
cclauss
e3545c8c06 Unicode fixes for Python3 2019-03-17 20:58:00 +01:00
Yorik van Havre
223eb6864c Draft: Fixed wrong formatting of DXF importer url 2018-12-17 11:06:10 -02:00
Yorik van Havre
144fee0915 Draft: updated minimal version of dxf library to include py3 fixes 2018-12-13 22:50:25 -02:00
Yorik van Havre
5633bd14d2 Arch/Draft: Misc small fixes
* Properly handle offset2D and arch objects in Draft Stretch
* Allow the WP of Arch BuildingParts to stay weak
* Fixed Draft Edit making Wires not plane anymore
* Dont change the WP if already perpendicular to current view
* Fixed DXF import of Polyfaces
2018-12-10 10:21:17 -02:00
Yorik van Havre
b12bcc44a8 Draft: py3 bugfix 2018-12-03 18:39:57 -02:00
Yorik van Havre
c0567a5990 Draft: Fixed DXF import of texts 2018-11-27 16:10:42 -02:00
Yorik van Havre
3799b2a306 Fixed coverity issues
184348 Bad use of null-like value
175794 Copy-paste error
172913 Copy-paste error
169506 Structurally dead code
169504 Bad use of null-like value
169013 Copy-paste error
2018-11-19 19:36:50 -02:00
Yorik van Havre
1d72ee4343 Draft: Export of Arch Axes to DXF 2018-11-07 12:38:07 -02:00
Yorik van Havre
6f06345634 Draft: Fixed DXF support for new Draft texts 2018-08-27 12:11:38 -03:00
wandererfan
650fed9795 Point Draft importDXF to Mod/Import/ImpExpDxf
- also add "deprecated" message to DraftUtils.readDXF
2018-05-02 22:09:46 +02:00
luz.paz
505488c4f9 Misc. typos
Found via `codespell`
2018-04-25 09:41:33 -03:00
looooo
d977014992 py3: fix dxf import 2018-04-14 10:40:31 +02:00
easyw
dac8cd50f3 moving comment at right place 2018-01-29 22:41:29 +01:00
easyw
44e57a3675 adding 'import sys' needed when opening a dxf file 2018-01-29 22:41:29 +01:00
looooo
f3b32da633 PathScripts: py3 print
Draft: typo in importDXF.py
2018-01-14 22:29:25 +01:00
looooo
3679c18e55 fix unicode problems for python3 2018-01-12 15:02:28 +01:00
Yorik van Havre
8382a8f61b Draft: Fixed DXF import 2018-01-08 13:45:10 -02:00
Yorik van Havre
c3ca4bc899 Draft: Fixed bug in DXF import 2017-12-13 15:20:22 -02:00
Yorik van Havre
0b33f977f7 Draft: Fix import of dxf files in no-gui mode 2017-11-14 10:19:33 -02:00
Yorik van Havre
f2fff7225c Draft: Fixed unicode conversion bug in DXF export 2017-06-09 00:00:08 -03:00
Yorik van Havre
5424fcd19d Draft: Better msg in dxf import/export to inform the possibility to use the addon manager - issue #3064 2017-06-05 11:59:31 -03:00
Yorik van Havre
08b7d9154a Arch: Fixed error in DXF export of Arch Panel sheets 2017-05-20 12:24:08 -03:00