Commit Graph

3110 Commits

Author SHA1 Message Date
Sebastian Hoogen
5fbd017e85 importSVG: ignore the viewBox if not absolute untis are
given for width and height and sort edges before trying to make a wire
2012-04-03 15:23:51 +02:00
Yorik van Havre
137b99b7d3 Bugfixes in Draft Upgrade 2012-03-29 11:57:18 -03:00
Yorik van Havre
d3ffc1e5af Fixed 000655 - Draft dimension default size 2012-03-28 10:45:17 -03:00
wmayer
fe50f2c752 0000652: Polish language not available even if translation is available in source 2012-03-25 13:38:32 +02:00
Yorik van Havre
61d3f3f649 Bugfixes in Arch Windows 2012-03-24 18:26:01 -03:00
Yorik van Havre
92448de11e Using the Arch window tool when a window is selected now produces
a clone
2012-03-24 11:41:45 -03:00
Yorik van Havre
ab39b89a3b The draft module can now work without GUI 2012-03-22 11:27:09 -03:00
Yorik van Havre
d3318a6945 Fixed 0000647: Draft module startup defaults 2012-03-19 18:49:00 -03:00
Yorik van Havre
73355a00de Fixed bug #584 in Draft Downgrade 2012-03-19 16:10:10 -03:00
Yorik van Havre
0f37df31a8 Added a Draft prefs option to hide the Snap bar after use 2012-03-19 15:45:49 -03:00
Yorik van Havre
87765b96b7 Fixed shortcuts in Arch and Draft menus 2012-03-19 15:27:15 -03:00
Yorik van Havre
102ddadcd8 Small fix to DraftSnap to work with walls containing walls 2012-03-19 15:14:27 -03:00
Yorik van Havre
f864641bc0 Bugfixes in Draft
+ fixed bug in Draft Edit
+ fixed bug in Draft Wire
2012-03-17 17:12:22 -03:00
Yorik van Havre
fa05d6a6db Bugfix in Draft upgrade 2012-03-16 20:08:09 -03:00
Yorik van Havre
bee8c2c592 Improvements in Draft Snap
+ fixed bug in parallel/extension button
+ added button for passive snap
+ fixed snap toolbar appearing outside the FreeCAD window
2012-03-16 18:29:56 -03:00
Yorik van Havre
939ebb9019 Small improvements to sphinx API docs generator 2012-03-14 13:27:07 -03:00
Yorik van Havre
ef6cccf350 Better icons for Draft Snap 2012-03-13 18:21:01 -03:00
Yorik van Havre
4aded2f24a Added RFE 583 - remove coin3d image loading from Draft 2012-03-13 14:18:52 -03:00
Yorik van Havre
808d8d0f66 Removed redundant LineStyle prop from Draft DrawingView objects
The printed linestyle now uses the linestyle of the source object
2012-03-13 11:55:21 -03:00
Yorik van Havre
11dfd41b94 Finished implementing RFE 510 - Arch Axes
Arch axes are now printable on a Drawing sheet with the Draft tool
2012-03-13 11:41:04 -03:00
Yorik van Havre
ccf52d9910 Fixed bug 625 in Draft importers 2012-03-12 18:45:47 -03:00
Yorik van Havre
3ed0d06aae New Draft Snap toolbar
A new toolbar will now appear when using the Draft Snap system (can
be disabled in preferences) allowing to turn snaps on/off globally
or invidually
2012-03-12 17:20:03 -03:00
Yorik van Havre
948b7bfece Fixing again bug #569 in Draft Offset 2012-03-12 10:27:32 -03:00
Yorik van Havre
cdaeb7a80c Small bugfixes in Draft
+ Draft point is now disabled when no document is open
+ Fix in Draft DXF import
2012-03-10 20:09:56 -03:00
Yorik van Havre
5ec2a5f3a0 Fixed bug in Draft working plane (Jose) 2012-03-07 10:34:32 -03:00
Yorik van Havre
626cdc41a2 Draft DXF importer now supports hatches
+ hatch boundaries can now be imported as wires
2012-02-26 13:51:35 -03:00
Yorik van Havre
581694839b Fixed block mirroring and text rotation bugs in Draft DXF import 2012-02-26 12:26:13 -03:00
Yorik van Havre
7a72e000ca Fixed more bugs in Draft SVG import
Fixed coordinates and text imports from librecad
2012-02-25 18:37:01 -02:00
Yorik van Havre
ce6b3156c4 Support rotated texts in Draft DXF import 2012-02-24 11:40:31 -02:00
Yorik van Havre
c1aa214199 Merge pull request #2 from 5263/svgimport
Several fixes and features in Draft SVG importer and 2 new SVG Drawing templates
2012-02-23 18:24:57 -08:00
Yorik van Havre
d5f2f5db62 Fixed multi-line texts bug in Draft DXF import 2012-02-24 00:11:17 -02:00
Sebastian Hoogen
4be3d6393e importSVG fixed handling of Ellipses 2012-02-23 21:06:04 +01:00
Sebastian Hoogen
dc1b380312 handling of viewBox and units in importSVG
The absolute values in the svg element are used in combination with the
viewBox Attribute to scale the svg to milimeter units.
If there is no viewbox attribute. 90dpi input is assumed.
2012-02-23 21:06:04 +01:00
Yorik van Havre
d570d28837 Allow to turn Draft snapping on/off while drawing
Draft snap can now be enabled or disabled while drawing by
pressing S or from the Draft menu -> Toggle snap command
2012-02-23 14:44:03 -02:00
Yorik van Havre
4e8cafa4c3 Extended the DrawStryle property to all Part-based objects
ViewProvider of Part objects now have a DrawStyle property
that allow them to display with solid, dashed, dotted or
dashdotted linestyles.
2012-02-23 13:28:56 -02:00
Yorik van Havre
50297e0394 Added DrawStyles to Draft objects
+ Draft Viewproviders now have a "DrawStyle" property which
allows to set solid, dashed, dotted or dashdotted linestyles.
2012-02-22 00:01:30 -02:00
Yorik van Havre
b0993fee36 Fixed dimension text height bug in Draft DXF import 2012-02-21 17:45:49 -02:00
Yorik van Havre
e533af6b96 Further improvements to Draft DXF importer
+ further removals of acad-specific text formatting
+ fixed text alignment
+ support of POINT entities
+ support of LEADER entities
2012-02-21 12:28:07 -02:00
Yorik van Havre
96a26a9dda More fixes to Draft DXF importer
+ Fixed *blocks embedded in std blocks
+ Fixed text color
+ Added text size pref setting
+ Further fixes to text formatting
2012-02-19 20:20:41 -02:00
Yorik van Havre
6d331e92ba Couple of fixes in Draft DXF importer
+ fixed default draft point color
+ fixed bug in polylines with bulge = almost zero
+ fixed bug in text attributes display
2012-02-19 17:31:28 -02:00
wmayer
837ddf5f38 Support of INSTALL target on Windows (VC++ and MinGW) 2012-02-17 21:41:00 +01:00
Yorik van Havre
709d2705cb Small fix to Draft SVG
+ fixed the location of the getrgb() function
2012-02-16 08:49:13 -02:00
Yorik van Havre
6f6d78daed Fixed editmode bugs in Draft & Arch 2012-02-13 20:13:13 -02:00
Yorik van Havre
034b44b713 Fixed bug #592 - SVG export of shapes containing full circles 2012-02-13 13:42:48 -02:00
Yorik van Havre
55657f36c1 Fixed bug #593 - Draft SVG representation of white objects 2012-02-13 10:44:59 -02:00
Yorik van Havre
3b66fc7239 Added arc flags calculation to Draft arcs exported to svg (shoogen) 2012-02-13 10:30:29 -02:00
Sebastian Hoogen
83004e56b7 importSVG reimplemented getsize using a RegEx 2012-02-12 10:20:48 +01:00
Sebastian Hoogen
15fe31b8ce importSVG multiple changes
reordered path command control structure
adding rounded rect and elliptical arc support
2012-02-10 09:36:12 +01:00
Sebastian Kuzminsky
0bd5e02ef3 remove some old dead code 2012-02-10 00:38:13 -07:00
Sebastian Kuzminsky
e02eafc207 export SVG as either 'Translated' or 'Raw'
There are two things a user might want when exporting to SVG:

    1. A pretty picture, to put on paper or on the screen and show
       to humans.

    2. An accurate representation of their part, for feeding to CAM
       software.

This commit adds a mechanism that lets the user select which of those
two options they want.

A new choice is added to the Draft Preferences.  The two options are:

    * "Translated (for print and display)", which acts just like before.
      The sketch is translated so it fits neatly in the display area.
      of the cartesian plane.  This is usually what you want if you're
      going to display the SVG to humans.

    * "Raw (for CAM)", which does not translate the sketch at all.
      All sketch coordinates are preserved exactly.  This is useful for
      feeding the SVG to a CAM program (like PyCAM).

The SVG export function is modified to check this new Preference setting,
and write either "Translated" or "Raw" SVGs as appropriate.
2012-02-10 00:38:04 -07:00