Draft Move/sv: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
{{Docnav |
||
|[[Draft_AnnotationStyleEditor|AnnotationStyleEditor]] |
|||
|[[Draft_Label|Label]] |
|||
|[[Draft_Rotate|Rotate]] |
|[[Draft_Rotate|Rotate]] |
||
|[[Draft_Module|Draft]] |
|[[Draft_Module|Draft]] |
||
|IconL= |
|IconL=Draft_AnnotationStyleEditor.svg |
||
|IconR=Draft_Rotate.svg |
|IconR=Draft_Rotate.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
Line 19: | Line 19: | ||
</div> |
</div> |
||
The Move tool can be used on 2D shapes created with the [[Draft Workbench]] or [[Sketcher Workbench]], but can also be used on many types of 3D objects such as those created with the [[Part Workbench]] or [[Arch Workbench]]. |
The Move tool can be used on 2D shapes created with the [[Draft_Workbench|Draft Workbench]] or [[Sketcher_Workbench|Sketcher Workbench]], but can also be used on many types of 3D objects such as those created with the [[Part_Workbench|Part Workbench]] or [[Arch_Workbench|Arch Workbench]]. |
||
To produce various copies in different arrangements use [[Draft Array]], [[Draft PathArray]] and [[Draft PointArray]]. |
To produce various copies in different arrangements use [[Draft_Array|Draft Array]], [[Draft_PathArray|Draft PathArray]] and [[Draft_PointArray|Draft PointArray]]. |
||
[[Image:Draft_Move_example.jpg|400px]] |
[[Image:Draft_Move_example.jpg|400px]] |
||
Line 40: | Line 40: | ||
===Limitations=== |
===Limitations=== |
||
When moving an object that is based on a [[Sketcher Sketch]], for example, a feature created with the [[PartDesign Workbench]] ([[ |
When moving an object that is based on a [[Sketcher_Sketch|Sketcher Sketch]], for example, a feature created with the [[PartDesign_Workbench|PartDesign Workbench]] ([[PartDesign_Pad|Pad]], [[PartDesign_Revolution|Revolution]], etc.) you must move the original sketch. If you move the derived object, it will just go back to the position defined by the sketch. |
||
==Options== |
==Options== |
||
Line 56: | Line 56: | ||
==Scripting== |
==Scripting== |
||
{{emphasis|See also:}} [[Draft API]] and [[FreeCAD Scripting Basics]]. |
{{emphasis|See also:}} [[Draft_API|Draft API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
||
The Move tool can be used in [[macros]] and from the [[Python]] console by using the following function: |
The Move tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following function: |
||
{{Code|code= |
{{Code|code= |
||
Line 93: | Line 93: | ||
{{Docnav |
{{Docnav |
||
|[[Draft_AnnotationStyleEditor|AnnotationStyleEditor]] |
|||
|[[Draft_Label|Label]] |
|||
|[[Draft_Rotate|Rotate]] |
|[[Draft_Rotate|Rotate]] |
||
|[[Draft_Module|Draft]] |
|[[Draft_Module|Draft]] |
||
|IconL= |
|IconL=Draft_AnnotationStyleEditor.svg |
||
|IconR=Draft_Rotate.svg |
|IconR=Draft_Rotate.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
Revision as of 18:18, 28 December 2020
Draft Move |
Menyplacering |
---|
Draft -> Move |
Arbetsbänkar |
Draft, Arch |
Standard genväg |
M V |
Introducerad i version |
- |
Se även |
Ingen |
Beskrivning
Detta verktyg flyttar de markerade objekten från en punkt till en annan. Om inget objekt är valt, så kommer du ombes att välja ett.
The Move tool can be used on 2D shapes created with the Draft Workbench or Sketcher Workbench, but can also be used on many types of 3D objects such as those created with the Part Workbench or Arch Workbench.
To produce various copies in different arrangements use Draft Array, Draft PathArray and Draft PointArray.
Moving an object from one point to another point
Bruk
- Markera punkter i ett tomt område i 3d vyn, eller på ett existerande objekt.
- Nedtryckning av CTRL kommer att snäppa din punkt till tillgängliga snäpp-punkter.
- Nedtryckning av SKIFT kommer att begränsa dig vertikalt eller horisontellt i relation till startpunkten.
- Om du trycker på ESC så avbryts funktionen.
- Skriv in siffror för att manuellt mata in en koordinat.
- C växlar kopieringsläget på/av. Med kopiering på, så kommer objekt(en) att kopieras istället för att flyttas.
- Nedtryckning av ALT kommer att skapa en kopia, även om kopieringsknappen är av.
- Om ALT är nedtryckt, så kan du göra multipla kopior ända tills ALT släpps.
Limitations
When moving an object that is based on a Sketcher Sketch, for example, a feature created with the PartDesign Workbench (Pad, Revolution, etc.) you must move the original sketch. If you move the derived object, it will just go back to the position defined by the sketch.
Options
- Press X, Y or Z after a point to constrain the next point on the given axis.
- To enter coordinates manually, simply enter the numbers, then press Enter between each X, Y and Z component. You can press the add 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 next point are relative to the last 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 Move tool will restart after you finish the operation, allowing you to move or copy the objects again without pressing the tool button again.
- Press P or click the checkbox to toggle copy mode. If copy mode is on, the Move tool will keep the original shape in its place but will make a copy at the second point.
- You can use both T and P to place several copies in sequence. In this case, the duplicated element is the last placed copy.
- Hold Alt after the first point to also toggle copy mode. Keeping Alt pressed after clicking on the second point will allow you to continue placing copies; release Alt to finish the operation and see all copies.
- Hold Ctrl while moving to force snapping your point to the nearest snap location, independently of the distance.
- Hold Shift while moving to constrain your next point horizontally or vertically in relation to the last one.
- Press Esc or the Close button to abort the current command; copies already placed will remain.
Scripting
See also: Draft API and FreeCAD Scripting Basics.
The Move tool can be used in macros and from the Python console by using the following function:
movedlist = move(objectslist, vector, copy=False)
- Moves the base point of the objects in
objectslist
by the displacement and direction indicated byvector
.objectslist
is either a single object or a list of objects.
- The displacement vector is relative to the base point of the object, which means that if an object is moved 2 units, and then another 2 units, it will have moved 4 units in total from its original position.
- If
copy
isTrue
copies are created instead of moving the original objects. movedlist
is returned with the original moved objects, or with the new copies.movedlist
is either a single object or a list of objects, depending on the inputobjectslist
.
Example:
import FreeCAD, Draft
Polygon1 = Draft.makePolygon(5, radius=1000)
Polygon2 = Draft.makePolygon(3, radius=500)
Polygon3 = Draft.makePolygon(6, radius=220)
Draft.move(Polygon1, FreeCAD.Vector(500, 500, 0))
Draft.move(Polygon1, FreeCAD.Vector(500, 500, 0))
Draft.move(Polygon2, FreeCAD.Vector(1000, -1000, 0))
Draft.move(Polygon3, FreeCAD.Vector(-500, -500, 0))
List1 = [Polygon1, Polygon2, Polygon3]
vector = FreeCAD.Vector(-2000, -2000, 0)
List2 = Draft.move(List1, vector, copy=True)
List3 = Draft.move(List1, -2*vector, copy=True)
- 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, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub