Draft Join: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Updated Scripting)
Line 54: Line 54:


<!--T:9-->
<!--T:9-->
To join wires use the {{incode|join_wires}} method ({{Version|0.19}}) or the {{incode|join_two_wires}} method ({{Version|0.19}}) of the Draft module. These methods replace the deprecated {{incode|joinWires}} and {{incode|joinTwoWires}} methods.
The Join tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:


</translate>
</translate>
{{Code|code=
{{Code|code=
joinWires(wires)
join_wires(wires)
joinTwoWires(wire1, wire2)
join_two_wires(wire1, wire2)
}}
}}
<translate>
<translate>

Example:







Revision as of 11:06, 24 May 2021

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.

Draft Join

Menu location
Modification → Join
Workbenches
Draft, Arch
Default shortcut
J O
Introduced in version
0.18
See also
Draft Split

Description

The Draft Join tool attempts to join all selected Draft Lines and Draft Wires into a single wire.

Usage

  1. Select two or more lines or wires that you wish to join together.
  2. Press the Draft Join button or press J then O keys.

If the open end of a wire in your selection coincides with the open end of another wire in your selection, they will be joined into a single wire. The properties of the first wire in your selection will remain and the rest of the objects will be deleted.

Options

There are no options for this tool. Either it works with the selected objects or not.

Notes

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To join wires use the join_wires method (introduced in version 0.19) or the join_two_wires method (introduced in version 0.19) of the Draft module. These methods replace the deprecated joinWires and joinTwoWires methods.

join_wires(wires)
join_two_wires(wire1, wire2)

Example: