Draft Circle/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav|[[Draft_Fillet|Fillet]]|[[Draft_Arc|Arc]]|[[Draft_Module|Draft]]|IconL=Draft_Fillet.svg |IconC=Workbench_Draft.svg|IconR=Draft_Arc.svg}}
{{Docnav
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Ellipse|Ellipse]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Arc_3Points.svg
|IconR=Draft_Ellipse.svg
|IconC=Workbench_Draft.svg
}}


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/ro
{{GuiCommand/ro|Name=Draft Circle|Name/ro=Cerc|Workbenches=[[Draft Module/ro|Draft]], [[Arch Module/ro|Arch]]|MenuLocation=Draft → Circle|Shortcut=C I|SeeAlso=[[Draft Arc/ro|Draft Arc]]}}
|Name=Draft Circle
|Name/ro=Cerc
|MenuLocation=Draft → Circle
|Workbenches=[[Draft_Workbench/ro|Draft]], [[Arch_Workbench/ro|Arch]]
|Shortcut={{KEY|C}} {{KEY|I}}
|SeeAlso=[[Draft Arc/ro|Draft Arc]]
}}
</div>
</div>

==Description==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 11: Line 28:
</div>
</div>


A Draft Circle can be turned into an arc by setting its {{PropertyData|First Angle}} and {{PropertyData|Last Angle}} properties to different values.
This tool works the same way as the [[Draft Arc]] tool, except that it creates a full circumference. To draw an ellipse use [[Draft Ellipse]].


[[Image:Draft_Circle_example.jpg|400px]]
[[Image:Draft_Circle_example.jpg|400px]]
Line 17: Line 34:
[[Image:Draft_Circle_example.jpg|400px]]
[[Image:Draft_Circle_example.jpg|400px]]
</div>
</div>

==Usage==

See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]].


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Cum se utilizează ==
== Cum se utilizează ==
# Apăsați butonul {{KEY|[[Image:Draft Circle.png|16px]] [[Draft Circle/ro|Draft Circle]]}} sau apăsați tastele {{KEY|L}} apoi {{KEY|I}}
# Apăsați butonul {{KEY|[[Image:Draft Circle.png|16px]] [[Draft Circle/ro|Draft Circle]]}} sau apăsați tastele {{KEY|L}} apoi {{KEY|I}}
# Faceți clic pe un prim punct din vizualizarea 3D sau tastați un [[Draft_Coordinates/ro|coordinate]]
# Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate
# Faceți clic pe un al doilea punct din vizualizarea 3D sau tastați valoarea razei
# Faceți clic pe un al doilea punct din vizualizarea 3D sau tastați valoarea razei
</div>
</div>


==Options==
The circle can be edited by double clicking on the element in the tree view, or by pressing the {{Button|[[Image:Draft Edit.svg|16px]] [[Draft Edit]]}} button. Then you can move the center and radius points to a new position.


The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts (for version 0.22).
The circle can be turned into an arc after creation, by setting its first angle and last angle properties to different values.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 43: Line 64:
</div>
</div>


==Notes==
<div class="mw-translate-fuzzy">

==Proprietăți==
* A Draft Circle can be edited with the [[Draft_Edit|Draft Edit]] command.
* {{PropertyData/ro|Radius}}: Raza cercului

* {{PropertyData/ro|Make Face}}: Umple cercul cu fațetă
==Preferences==
* {{PropertyView/ro|Pattern}}: Specifică modelul de hașură pentru a umple filamentul cu el

* {{PropertyView/ro|Pattern Size}}: Specifică mărimea modelului de hașură
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
</div>

* If the {{MenuCommand|Edit → Preferences... → Draft → General → Create Part primitives if possible}} option is checked, the command will create a [[Part_Circle|Part Circle]] instead of a Draft Circle.

==Properties==

See also: [[Property_editor|Property editor]].

A Draft Circle object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties:


===Data===
===Data===

* {{PropertyData|First Angle}}: specifies the starting angle of the circle; normally 0&#176;.
{{TitleProperty|Draft}}
* {{PropertyData|Last Angle}}: specifies the ending angle of the circle; normally 0&#176;.

* {{PropertyData|Radius}}: specifies the radius of the circle.
* {{PropertyData|Make Face}}: specifies if the Circle makes a face or not. If it is {{TRUE}} a face is created, otherwise only the circumference is considered part of the object. This property only works if the shape is a full circumference.
* {{PropertyData|Area|Area}}: (read-only) specifies the area of the face of the circle. The value will be {{value|0.0}} if {{PropertyData|Make Face}} if {{FALSE}} or the face cannot be created.
* {{PropertyData|First Angle|Angle}}: specifies the start angle of the circle, normally {{value|0&#176;}}.
:For it to be a full circle {{PropertyData|First Angle}} and {{PropertyData|Last Angle}} should have the same value; otherwise, a [[Draft Arc]] is displayed. The values 0&#176; and 360&#176; aren't considered the same, so if these two values are used, the circle will not form a face.
* {{PropertyData|Last Angle|Angle}}: specifies the end angle of the circle, normally {{value|0&#176;}}.
* {{PropertyData|Make Face|Bool}}: specifies if the circle makes a face or not. If it is {{TRUE}} a face is created, otherwise only the perimeter is considered part of the object. This property only works if the {{PropertyData|First Angle}} and {{PropertyData|Last Angle}} have the same value. Note that {{value|0&#176;}} and {{value|360&#176;}} are not considered the same.
* {{PropertyData|Radius|Length}}: specifies the radius of the circle.


===View===
===View===

* {{PropertyView|Pattern}}: specifies a [[Draft Pattern]] with which to fill the face of the circle. This property only works if {{PropertyData|Make Face}} is {{TRUE}}, and if {{PropertyView|Display Mode}} is "Flat Lines".
{{TitleProperty|Draft}}
* {{PropertyView|Pattern Size}}: specifies the size of the [[Draft Pattern]].

* {{PropertyView|Pattern|Enumeration}}: specifies the [[Draft_Pattern|Draft Pattern]] with which to fill the face of the circle. This property only works if {{PropertyData|Make Face}} is {{TRUE}} and if {{PropertyView|Display Mode}} is {{value|Flat Lines}}.
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]].

==Scripting==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 67: Line 104:
</div>
</div>


To create a Draft Circle use the {{incode|make_circle}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeCircle}} method.
The Circle tool can be used in [[macros]] and from the [[Python]] console by using the following function:


{{Code|code=
{{Code|code=
Circle = makeCircle(radius, placement=None, face=None, startangle=None, endangle=None, support=None)
circle = make_circle(radius, placement=None, face=None, startangle=None, endangle=None, support=None)
Circle = makeCircle(Part.Edge, placement=None, face=None, startangle=None, endangle=None, support=None)
circle = make_circle(Part.Edge, placement=None, face=None, startangle=None, endangle=None, support=None)
}}
}}


Line 83: Line 120:
Exempluː
Exempluː
{{Code|code=
{{Code|code=
import FreeCAD, Draft
import FreeCAD as App
import Draft


doc = App.newDocument()
Circle1 = Draft.makeCircle(200)


circle1 = Draft.make_circle(200)
ZAxis = FreeCAD.Vector(0, 0, 1)
p2 = FreeCAD.Vector(1000, 1000, 0)
place2 = FreeCAD.Placement(p2, FreeCAD.Rotation(ZAxis, 0))
Circle2 = Draft.makeCircle(500, placement=place2)


p3 = FreeCAD.Vector(-1000, -1000, 0)
zaxis = App.Vector(0, 0, 1)
p2 = App.Vector(1000, 1000, 0)
place3 = FreeCAD.Placement(p3, FreeCAD.Rotation(ZAxis, 0))
place2 = App.Placement(p2, App.Rotation(zaxis, 0))
Circle3 = Draft.makeCircle(750, placement=place3)
circle2 = Draft.make_circle(500, placement=place2)

p3 = App.Vector(-1000, -1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 0))
circle3 = Draft.make_circle(750, placement=place3)

doc.recompute()
}}
}}


{{Docnav|[[Draft_Fillet|Fillet]]|[[Draft_Arc|Arc]]|[[Draft_Module|Draft]]|IconL=Draft_Fillet.svg |IconC=Workbench_Draft.svg|IconR=Draft_Arc.svg}}


{{Docnav
{{Draft Tools navi}}
|[[Draft_Arc_3Points|Arc 3Points]]
|[[Draft_Ellipse|Ellipse]]
|[[Draft_Workbench|Draft]]
|IconL=Draft_Arc_3Points.svg
|IconR=Draft_Ellipse.svg
|IconC=Workbench_Draft.svg
}}


{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 04:56, 9 January 2024

Cerc

poziția meniului
Draft → Circle
Ateliere
Draft, Arch
scurtătură
C I
Prezentat în versiune
-
A se vedea, de asemenea,
Draft Arc

Description

Descriere

Instrumentul Circle creează un cerc în work plane introducând două puncte, centrul și raza sau prin selectarea de tangente sau orice combinație a acestora. Este nevoie de linewidth and color setată anterior pe fila Activități. Acest instrument funcționează la fel ca instrumentul Draft Arc, cu excepția faptului că se oprește după introducerea razei.

A Draft Circle can be turned into an arc by setting its DateFirst Angle and DateLast Angle properties to different values.

Usage

See also: Draft Tray, Draft Snap and Draft Constrain.

Cum se utilizează

  1. Apăsați butonul Draft Circle sau apăsați tastele L apoi I
  2. Faceți clic pe un prim punct din vizualizarea 3D sau tastați un coordinate
  3. Faceți clic pe un al doilea punct din vizualizarea 3D sau tastați valoarea razei

Options

The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 0.22).

Opțiuni

  • O primă utilizarea a instrumentului cerc constă în alegerea a două puncte, centrul și un punct de pe circumferință, definind raza.
  • Prin apăsarea tastei ALT, puteți selecta o tangentă în loc să alegeți un punct. Prin urmare, puteți construi mai multe tipuri de cercuri selectând una, două sau trei tangente.
  • Pentru a introduce manual coordonatele, pur și simplu introduceți numerele, apoi apăsați ENTER între fiecare componentă X, Y și Z.
  • Apăsați tasta T sau faceți clic pe caseta de selectare pentru a bifa/debifa butonul Continue. Dacă modul continuat este activat, instrumentul Cerc va reporni după ce dați cel de-al doilea punct, permițându-vă să desenați un alt cerc fără să apăsați din nou butonul Cerc.
  • Apăsați CTRL în timp ce desenați pentru a forța snapping punctul dvs. către cea mai apropiată locație, independent de distanța.
  • Apăsați SHIFT în timp ce desenați constrain al doilea punct pe orizontală sau pe verticală în raport cu primul punct.
  • Apăsați butonul I sau butonul Completat pentru a avea cercul umplut cu o fațetă.
  • Apăsați butonul ESC sau butonul Anulare pentru a întrerupe comanda curentă.
  • Cercul poate fi transformat într-un arc după creare, prin setarea proprietăților sale unghi și ultimul unghi la valori diferite.
  • Cercurile, în modul de afișare "Flat Lines", pot afișa un model de hașurare, prin setarea proprietății "Pattern" de mai jos.

Notes

  • A Draft Circle can be edited with the Draft Edit command.

Preferences

See also: Preferences Editor and Draft Preferences.

  • If the Edit → Preferences... → Draft → General → Create Part primitives if possible option is checked, the command will create a Part Circle instead of a Draft Circle.

Properties

See also: Property editor.

A Draft Circle object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:

Data

Draft

  • DateArea (Area): (read-only) specifies the area of the face of the circle. The value will be 0.0 if DateMake Face if false or the face cannot be created.
  • DateFirst Angle (Angle): specifies the start angle of the circle, normally .
  • DateLast Angle (Angle): specifies the end angle of the circle, normally .
  • DateMake Face (Bool): specifies if the circle makes a face or not. If it is true a face is created, otherwise only the perimeter is considered part of the object. This property only works if the DateFirst Angle and DateLast Angle have the same value. Note that and 360° are not considered the same.
  • DateRadius (Length): specifies the radius of the circle.

View

Draft

  • VizualizarePattern (Enumeration): specifies the Draft Pattern with which to fill the face of the circle. This property only works if DateMake Face is true and if VizualizareDisplay Mode is Flat Lines.
  • VizualizarePattern Size (Float): specifies the size of the Draft Pattern.

Scripting

Script-Programre

Unealta Cerc poate fi folosită în macro-uri şi de la consola Python cu ajutorul funcţiei următoare:

To create a Draft Circle use the make_circle method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeCircle method.

circle = make_circle(radius, placement=None, face=None, startangle=None, endangle=None, support=None)
circle = make_circle(Part.Edge, placement=None, face=None, startangle=None, endangle=None, support=None)
  • Creează un obiect tip cerc cu o rază dată.
  • Dacă este dată o destinație de plasare, este utilizată. În cazul în care facemode este Fals, cercul este afișat ca un cadru tip filament, altfel ca o fațetă.
  • În cazul în care sunt date unghi de început și de sfârșit de capăt (în grade), ele sunt utilizate și obiectul apare ca un arc de cerc.
  • Returnează obiectul nou creat.

Exempluː

import FreeCAD as App
import Draft

doc = App.newDocument()

circle1 = Draft.make_circle(200)

zaxis = App.Vector(0, 0, 1)
p2 = App.Vector(1000, 1000, 0)
place2 = App.Placement(p2, App.Rotation(zaxis, 0))
circle2 = Draft.make_circle(500, placement=place2)

p3 = App.Vector(-1000, -1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 0))
circle3 = Draft.make_circle(750, placement=place3)

doc.recompute()