Draft Downgrade/ro: Difference between revisions
No edit summary |
(Updating to match new version of source page) |
||
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{GuiCommand|Name=Draft Downgrade|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Draft → Downgrade|Shortcut=D N|SeeAlso=[[Draft Upgrade|Draft Upgrade]]}} |
|||
{{Docnav |
|||
|[[Draft_Upgrade|Upgrade]] |
|||
|[[Draft_WireToBSpline|WireToBSpline]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Upgrade.svg |
|||
|IconR=Draft_WireToBSpline.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand |
|||
|Name=Draft Downgrade |
|||
|Workbenches=[[Draft_Workbench/ro|Draft]], [[Arch_Workbench/ro|Arch]] |
|||
|MenuLocation=Draft → Downgrade |
|||
|Shortcut=D N |
|||
|SeeAlso=[[Draft Upgrade|Draft Upgrade]] |
|||
}} |
|||
</div> |
|||
<span id="Description"></span> |
|||
==Descriere== |
==Descriere== |
||
<div class="mw-translate-fuzzy"> |
|||
Acest instrument downgradează obiectele selectate în moduri diferite. Dacă nu este selectat niciun obiect, veți putea selecta unul. |
|||
Acest instrument downgradează/ retrogradează/ descompune/ explodează obiectele selectate în moduri diferite. Dacă nu este selectat niciun obiect, veți putea selecta unul. |
|||
</div> |
|||
[[Image:Draft_Downgrade_example.jpg|400px]] |
[[Image:Draft_Downgrade_example.jpg|400px]] |
||
{{Caption|Two overlapping faces are downgraded to a Part Cut object, which is downgraded to a face. That face is then downgraded to a closed wire, which is finally downgraded to separate edges.}} |
|||
<span id="Usage"></span> |
|||
<div class="mw-translate-fuzzy"> |
|||
== Cum se folosește == |
== Cum se folosește == |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
# Select one or more objects you want to downgrade |
|||
# Selectați unul sau mi multe obiecte pe caer vreți să le downgradați |
|||
# Press the {{KEY|[[Image:Draft Downgrade.png|16px]] [[Draft Downgrade]]}} button or press {{KEY|D}} then {{KEY|N}} keys |
|||
# apăsați pe butonul {{KEY|[[Image:Draft Downgrade.png|16px]] [[Draft Downgrade]]}} sau apăsați pe tasta {{KEY|D}} și apoi pe {{KEY|N}} |
|||
</div> |
|||
== |
==Scripting== |
||
The selected objects are modified/downgraded, according to the following conditions (in order): |
|||
* if only one object is selected and it contains more than one face, each face becomes a separate object |
|||
* if there are more than one face in the selection, the subsequent objects are subtracted from the first one |
|||
* if there is only one face in the selection, it gets converted into a wire |
|||
* otherwise all wires found in the selection are exploded into single edges |
|||
==Exemplu== |
|||
<gallery widths="300" heights="200"> |
|||
File:Draft Downgrade 01.png|Complete shape |
|||
File:Draft Downgrade 02.png|Downgraded shape, with disconnected and split faces |
|||
</gallery> |
|||
<div class="mw-translate-fuzzy"> |
|||
==Script== |
==Script== |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
The Downgrade tool can be used in python scripts and [[macros]] by using the following function: |
|||
Instrumentul Downgrade poate fi folosit în scripturile python și [[macros]] utilizând următoarea funcție: |
|||
</div> |
|||
{{Code|code= |
{{Code|code= |
||
downgrade_list = downgrade(objects, delete=False, force=None) |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
* Downgrades the given object(s) (can be an object or a list of objects). |
|||
* Downgradează obiectul/e dat/e (poate fi un obiect sau o listă de obiecte). |
|||
* If delete is True, old objects are deleted. |
|||
* Dacă ștergerea este True, obiectele vechi sunt șterse. |
|||
* The force attribute can be used to force a certain way of downgrading. It can be: explode, shapify, subtr, splitFaces, cut2, getWire, splitWires. |
|||
* Atributul de forță poate fi folosit pentru a forța un anumit mod de dezasambalre. Acesta poate fi: explode, shapify, subtr, splitFaces, cut2, getWire, splitWires. |
|||
* Returns a dictionary containing two lists, a list of new objects and a list of objects to be deleted |
|||
* Returnează un dicționar care conține două liste, o listă de obiecte noi și o listă de obiecte care trebuie șterse |
|||
</div> |
|||
Exempluː |
Exempluː |
||
{{Code|code= |
{{Code|code= |
||
import |
import FreeCAD as App |
||
import Draft |
|||
selection = FreeCADGui.Selection.getSelection() |
|||
Draft.downgrade(selection) |
|||
doc = App.newDocument() |
|||
circle = Draft.make_circle(1000) |
|||
rectangle = Draft.make_rectangle(2000, 800) |
|||
doc.recompute() |
|||
add_list1, delete_list1 = Draft.upgrade([circle, rectangle], delete=True) |
|||
compound = add_list1[0] |
|||
add_list2, delete_list2 = Draft.downgrade(compound, delete=False) |
|||
face = add_list2[0] |
|||
add_list3, delete_list3 = Draft.downgrade(face, delete=False) |
|||
box = doc.addObject("Part::Box", "Box") |
|||
box.Length = 2300 |
|||
box.Width = 800 |
|||
box.Height = 1000 |
|||
add_list4, delete_list4 = Draft.downgrade(box, delete=True) |
|||
doc.recompute() |
|||
}} |
}} |
||
{{Docnav |
|||
|[[Draft_Upgrade|Upgrade]] |
|||
|[[Draft_WireToBSpline|WireToBSpline]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Upgrade.svg |
|||
|IconR=Draft_WireToBSpline.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{Draft Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 20:06, 7 December 2023
Draft Downgrade |
Menu location |
---|
Draft → Downgrade |
Workbenches |
Draft, Arch |
Default shortcut |
D N |
Introduced in version |
- |
See also |
Draft Upgrade |
Descriere
Acest instrument downgradează/ retrogradează/ descompune/ explodează obiectele selectate în moduri diferite. Dacă nu este selectat niciun obiect, veți putea selecta unul.
Two overlapping faces are downgraded to a Part Cut object, which is downgraded to a face. That face is then downgraded to a closed wire, which is finally downgraded to separate edges.
Cum se folosește
- Selectați unul sau mi multe obiecte pe caer vreți să le downgradați
- apăsați pe butonul Draft Downgrade sau apăsați pe tasta D și apoi pe N
Scripting
Script
Instrumentul Downgrade poate fi folosit în scripturile python și macros utilizând următoarea funcție:
downgrade_list = downgrade(objects, delete=False, force=None)
- Downgradează obiectul/e dat/e (poate fi un obiect sau o listă de obiecte).
- Dacă ștergerea este True, obiectele vechi sunt șterse.
- Atributul de forță poate fi folosit pentru a forța un anumit mod de dezasambalre. Acesta poate fi: explode, shapify, subtr, splitFaces, cut2, getWire, splitWires.
- Returnează un dicționar care conține două liste, o listă de obiecte noi și o listă de obiecte care trebuie șterse
Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
circle = Draft.make_circle(1000)
rectangle = Draft.make_rectangle(2000, 800)
doc.recompute()
add_list1, delete_list1 = Draft.upgrade([circle, rectangle], delete=True)
compound = add_list1[0]
add_list2, delete_list2 = Draft.downgrade(compound, delete=False)
face = add_list2[0]
add_list3, delete_list3 = Draft.downgrade(face, delete=False)
box = doc.addObject("Part::Box", "Box")
box.Length = 2300
box.Width = 800
box.Height = 1000
add_list4, delete_list4 = Draft.downgrade(box, delete=True)
doc.recompute()
Draft
- 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
User documentation
- 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, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub