Draft Ellipse: Difference between revisions
No edit summary |
(→View) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Page_in_progress}} |
|||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:19--> |
<!--T:19--> |
||
{{Docnav |
{{Docnav |
||
|[[ |
|[[Draft_Circle|Circle]] |
||
|[[Draft_Rectangle|Rectangle]] |
|||
|[[Draft_Polygon|Polygon]] |
|||
|[[Draft_Module|Draft]] |
|[[Draft_Module|Draft]] |
||
|IconL= |
|IconL=Draft_Circle.svg |
||
|IconR= |
|IconR=Draft_Rectangle.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
||
Line 14: | Line 16: | ||
{{GuiCommand |
{{GuiCommand |
||
|Name=Draft Ellipse |
|Name=Draft Ellipse |
||
|MenuLocation= |
|MenuLocation=Drafting → Ellipse |
||
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
|Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
||
|Shortcut={{KEY|E}} {{KEY|L}} |
|Shortcut={{KEY|E}} {{KEY|L}} |
||
|Version=0.7 |
|Version=0.7 |
||
|SeeAlso=[[Draft_Circle|Draft Circle]], [[Draft_Arc|Draft Arc]] |
|||
}} |
}} |
||
Line 24: | Line 25: | ||
<!--T:3--> |
<!--T:3--> |
||
The Ellipse |
The [[Image:Draft_Ellipse.svg|24px]] [[Draft_Ellipse|Draft Ellipse]] command creates an ellipse in the current [[Draft_SelectPlane|working plane]] by entering two points, defining the corners of a rectangular box in which the ellipse will fit. It uses the [[Draft_Linestyle|Draft Linestyle]] set on the [[Draft_Tray|Draft Tray]]. |
||
<!--T:14--> |
<!--T:14--> |
||
⚫ | |||
This tool can also be used to create elliptical arcs by specifying the start and end angles. To create circles and circular arcs use the [[Draft Circle|Draft Circle]] and [[Draft Arc|Draft Arc]] tools. You can also approximate an elliptical or circular arc using the [[Draft BSpline|Draft BSpline]] and [[Draft BezCurve|Draft BezCurve]] tools. |
|||
</translate> |
</translate> |
||
Line 38: | Line 39: | ||
<!--T:5--> |
<!--T:5--> |
||
# There are several ways to invoke the command: |
|||
# Press the {{Button|[[Image:Draft_Ellipse.svg|16px]] [[Draft Ellipse|Draft Ellipse]]}} button, or press {{KEY|E}} then {{KEY|L}} keys. |
|||
# |
#* Press the {{Button|[[Image:Draft_Ellipse.svg|16px]] [[Draft_Ellipse|Draft Ellipse]]}} button. |
||
#* Select the {{MenuCommand|Drafting → [[Image:Draft_Ellipse.svg|16px]] Ellipse}} option from the menu. |
|||
⚫ | |||
#* Use the keyboard shortcut: {{KEY|E}} then {{KEY|L}}. |
|||
# Click the first point in the [[3D_view|3D view]], or type [[Draft_Coordinates|coordinates]] and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
==Options== <!--T:6--> |
==Options== <!--T:6--> |
||
<!--T:7--> |
<!--T:7--> |
||
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component. You can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] |
* To enter coordinates manually, simply enter the numbers, then press {{KEY|Enter}} between each X, Y and Z component. You can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values to insert the point. |
||
* Press {{KEY|R}} or click the checkbox to toggle ''relative'' mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0). |
* Press {{KEY|R}} or click the checkbox to toggle ''relative'' mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0). |
||
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the Ellipse |
* Press {{KEY|T}} or click the checkbox to toggle ''continue'' mode. If continue mode is on, the Ellipse command will restart after you finish the shape, allowing you to draw another one without pressing the command button again. |
||
* Press {{KEY|L}} or click the checkbox to toggle ''filled'' mode. If filled mode is on, the ellipse will create a filled face ({{PropertyData|Make Face}} {{TRUE}}); if not, the ellipse will not make a face ({{PropertyData|Make Face}} {{FALSE}}). |
* Press {{KEY|L}} or click the checkbox to toggle ''filled'' mode. If filled mode is on, the ellipse will create a filled face ({{PropertyData|Make Face}} {{TRUE}}); if not, the ellipse will not make a face ({{PropertyData|Make Face}} {{FALSE}}). |
||
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
* Hold {{KEY|Ctrl}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
||
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your second point horizontally or vertically in relation to the first one. |
* Hold {{KEY|Shift}} while drawing to [[Draft_Constrain|constrain]] your second point horizontally or vertically in relation to the first one. |
||
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command. |
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the current command. |
||
==Notes== |
|||
* A Draft Ellipse can be edited with the [[Draft_Edit|Draft Edit]] command. |
|||
==Properties== <!--T:8--> |
==Properties== <!--T:8--> |
||
See also: [[property_editor|Property editor]]. |
|||
⚫ | |||
An Ellipse object shares many properties with a [[Draft Circle|Draft Circle]], but some properties only make sense for the ellipse. |
|||
A Draft Ellipse object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
:If the both radius have the same value, the ellipse looks the same as a [[Draft Circle|Draft Circle]]. |
|||
⚫ | |||
:For it to be a full ellipse {{PropertyData|First Angle}} and {{PropertyData|Last Angle}} should have the same value; otherwise, an elliptical arc is displayed. The values 0° and 360° are considered the same. |
|||
=== |
===Data=== |
||
⚫ | |||
⚫ | |||
{{TitleProperty|Draft}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
* {{PropertyData|Area|Area}}: (read-only) specifies the area of the face of the ellipse. The value will be {{value|0.0}} if {{PropertyData|Make Face}} if {{FALSE}} or the face cannot be created. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
===View=== |
|||
{{TitleProperty|Draft}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
<!--T:17--> |
<!--T:17--> |
||
To create a Draft Ellipse use the {{incode|make_ellipse}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeEllipse}} method. |
|||
The Ellipse tool can by used in [[macros|macros]] and from the [[Python|Python]] console by using the following function: |
|||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
ellipse = make_ellipse(majradius, minradius, placement=None, face=True, support=None) |
|||
}} |
}} |
||
<translate> |
<translate> |
||
<!--T:11--> |
<!--T:11--> |
||
* Creates an {{incode| |
* Creates an {{incode|ellipse}} object with given major ({{incode|majradius}}) and minor ({{incode|minradius}}) radius in millimeters. |
||
** The bigger value will be used for the major radius (X axis) if no other placement is given. |
** The bigger value will be used for the major radius (X axis) if no other placement is given. |
||
* If |
* If {{incode|placement}} is {{incode|None}} the shape is created at the origin. |
||
* If {{incode|face}} is {{incode|True}}, the ellipse will make a face, that is, it will appear filled. |
* If {{incode|face}} is {{incode|True}}, the ellipse will make a face, that is, it will appear filled. |
||
<!--T:12--> |
<!--T:12--> |
||
Example: |
Example: |
||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
import FreeCAD |
import FreeCAD as App |
||
import Draft |
|||
doc = App.newDocument() |
|||
⚫ | |||
Ellipse2 = Draft.makeEllipse(700, 1000) |
|||
⚫ | |||
⚫ | |||
ellipse2 = Draft.make_ellipse(700, 1000) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
p3 = App.Vector(1000, 1000, 0) |
|||
⚫ | |||
⚫ | |||
doc.recompute() |
|||
}} |
}} |
||
<translate> |
<translate> |
||
<!--T:18--> |
<!--T:18--> |
||
{{Docnav |
{{Docnav |
||
|[[ |
|[[Draft_Circle|Circle]] |
||
|[[Draft_Rectangle|Rectangle]] |
|||
|[[Draft_Polygon|Polygon]] |
|||
|[[Draft_Module|Draft]] |
|[[Draft_Module|Draft]] |
||
|IconL= |
|IconL=Draft_Circle.svg |
||
|IconR= |
|IconR=Draft_Rectangle.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
||
Line 121: | Line 144: | ||
{{Draft Tools navi{{#translation:}}}} |
{{Draft Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Revision as of 09:19, 30 March 2021
Draft Ellipse |
Menu location |
---|
Drafting → Ellipse |
Workbenches |
Draft, Arch |
Default shortcut |
E L |
Introduced in version |
0.7 |
See also |
None |
Description
The Draft Ellipse command creates an ellipse in the current working plane by entering two points, defining the corners of a rectangular box in which the ellipse will fit. It uses the Draft Linestyle set on the Draft Tray.
A Draft Ellipse can be turned into an elliptical arc by setting its DataFirst Angle and DataLast Angle properties to different values.
Ellipse defined by the rectangle corners
Usage
- There are several ways to invoke the command:
- Press the Draft Ellipse button.
- Select the Drafting → Ellipse option from the menu.
- Use the keyboard shortcut: E then L.
- Click the first point in the 3D view, or type coordinates and press the Enter point button.
- Click the second point in the 3D view, or type coordinates and press the Enter point button.
Options
- To enter coordinates manually, simply enter the numbers, then press Enter between each X, Y and Z component. You can press the Enter point button when you have the desired values to insert the point.
- Press R or click the checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first one; if not, they are absolute, taken from the origin (0,0,0).
- Press T or click the checkbox to toggle continue mode. If continue mode is on, the Ellipse command will restart after you finish the shape, allowing you to draw another one without pressing the command button again.
- Press L or click the checkbox to toggle filled mode. If filled mode is on, the ellipse will create a filled face (DataMake Face
true
); if not, the ellipse will not make a face (DataMake Facefalse
). - Hold Ctrl while drawing to force snapping your point to the nearest snap location, independently of the distance.
- Hold Shift while drawing to constrain your second point horizontally or vertically in relation to the first one.
- Press Esc or the Close button to abort the current command.
Notes
- A Draft Ellipse can be edited with the Draft Edit command.
Properties
See also: Property editor.
A Draft Ellipse object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Data
Draft
- DataArea (
Area
): (read-only) specifies the area of the face of the ellipse. The value will be0.0
if DataMake Face iffalse
or the face cannot be created. - DataFirst Angle (
Angle
): specifies the angle of the first point of the ellipse, normally0°
. - DataLast Angle (
Angle
): specifies the angle of the last point of the ellipse, normally0°
. - DataMajor Radius (
Length
): specifies the major radius of the ellipse. - DataMake Face (
Bool
): specifies if the ellipse makes a face or not. If it istrue
a face is created, otherwise only the perimeter is considered part of the object. This property only works if the shape is a full ellipse. - DataMinor Radius (
Length
): specifies the minor radius of the ellipse.
View
Draft
- ViewPattern (
Enumeration
): specifies the Draft Pattern with which to fill the face of the ellipse. This property only works if DataMake Face istrue
and if ViewDisplay Mode isFlat Lines
. - ViewPattern Size (
Float
): specifies the size of the Draft Pattern.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a Draft Ellipse use the make_ellipse
method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeEllipse
method.
ellipse = make_ellipse(majradius, minradius, placement=None, face=True, support=None)
- Creates an
ellipse
object with given major (majradius
) and minor (minradius
) radius in millimeters.- The bigger value will be used for the major radius (X axis) if no other placement is given.
- If
placement
isNone
the shape is created at the origin. - If
face
isTrue
, the ellipse will make a face, that is, it will appear filled.
Example:
import FreeCAD as App
import Draft
doc = App.newDocument()
ellipse1 = Draft.make_ellipse(3000, 200)
ellipse2 = Draft.make_ellipse(700, 1000)
zaxis = App.Vector(0, 0, 1)
p3 = App.Vector(1000, 1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 90))
ellipse3 = Draft.make_ellipse(700, 1000, placement=place3)
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub