Cables WireFlex

Other languages:

Cables WireFlex

Menu location
Cable Wires → WireFlex
Workbenches
Cables
Default shortcut
W F
Introduced in version
0.1.0
See also
Cables AddVertex, Cables DelVertex, Cables AttachVertex, Cables RemoveVertexAttachment

Description

The WireFlex object is derived from Draft Wire and inherits all its properties. The main difference is that WireFlex is able to attach every of its vertexes to external vertex or object (attachment to object is understood as an attachment to its Placement.Base). Not every vertex has to be attached, some of them can be left to move freely depending on current needs. Another difference is that the WireFlex can take on three different shapes (see Path Type Proterty).

Main purpose of a WireFlex is to serve as a base for a Cable or a Cable Conduit.

All WireFlex vertexes can be edited like Draft Wire vertexes with the Cables Edit command (just double-click on the WireFlex in the Tree view). See Notes.

Some properties of WireFlex inherited from Draft Wire are hidden by default, some of them like Fillet Radius can be controlled from the cable properties if WireFlex is a base of a Cable. From version 0.2.0 onward the following restriction has been removed: in version 0.1.4 and earlier it was strongly recommended to set Fillet Radius as the last step of WireFlex creation. Setting this during WireFlex editing could lead to an error: "Not possible to modify WireFlex due to non zero Chamfer or Fillet or Subdivision".

Sample structure of WireFlex

Path Type Property

(property introduced in version 0.2.0)

WireFlex object can take on three different shapes based on the same Points property. These are: Wire, B-spline-K, B-spline-P. For a Wire shape the Points serve as vertices, for a B-spline-K shape the Points are mapped as knots (like in Draft BSpline) and for a B-spline-P shape the Points act as poles (similar to Draft BezCurve, a B-spline-P is smoother then and easier to control than a B-spline-K).

Three Path Types of the same WireFlex: Wire, B-spline-K, B-spline-P

Colors of Vertexes

(feature introduced in version 0.2.0)

By default points representing WireFlex vertexes can have the following colors:

for regular vertex which can be freely moved,

or for attached vertex (see Attach Vertex for details),

or for boundary vertex used with B-spline-K or B-spline-P Path Type.

If necessary, the above colors can be changed (see View Properties).

Usage

  1. Select the first external existing vertex in the 3D view
  2. Select additional vertexes (one or more) in the 3D view holding the CTRL key.
  3. Create WireFlex by one of these methods:
    • Press the WireFlex button.
    • Select the Cable Wires → WireFlex option from the menu.
    • Right-click in the Tree view or the 3D view and select the Cable Wires → WireFlex option from the context menu.

Note1: selection of elements other then vertexes is treated as a selection of entire object. In this case the Placement.Base of a selected object is taken as a reference.

Note2: If only one vertex|entire object is selected, then created WireFlex will be built from the Points property of selected object and no vertex attachments are made. If selected object has no Points property, the creation is made from the vertexes of selected object.

After wire creation the first vertex|object which was selected in 3D View is automatically added to Attachment Support of a wire and the Map Mode property is set to Translate origin (general description of part attachment is here: Part EditAttachment). Additionally the same vertex|object is added to Vrtx_start property, the last selected vertex|object is added to Vrtx_end property and the selected mid vertexes|objects are added to Vrtxs_mid and Vrtxs_mid_idx accordingly.

At any time any WireFlex vertex can be detached or reatached to other object by using Attach Vertex or Remove Vertex Attachment tools (or by using Cables Edit command).

It is advised to experiment and familiarize yourself with the various options for possibly moving objects attached to a wire and observe the behavior of the wire depending on how many and which vertexes are attached to external objects and whether the Map Mode property is enabled or disabled for the entire wire. Even more interesting possibilities are provided by using e.g. Support Line or Support Point.

Example1
Movement of the Cube1 which is attached to WireFlex start vertex when Attachment Map Mode of WireFlex is set to Translate origin.

Example2
Movement of the Cube1 which is attached to WireFlex start vertex when Attachment Map Mode of WireFlex is Deactivated.

Animated version of the above images is here

Notes

In version 0.1.4 and earlier Draft Edit was used with the following restrictions: When in Draft Edit mode DO NOT use "Add point" and "Delete point" from context menu. This can lead to wrong assignment of points attachments. To add or delete point from WireFlex use only Add Vertex or Delete Vertex while not in Draft Edit mode.

Properties

See also: Property editor.

A Cables WireFlex object is derived from a Draft Wire and inherits all its properties. Some of the inherited properties are hidden (see Description). WireFlex has also the following additional properties:

Data

Wire Flex

It is recommended to not adjust the above properties manually, but to use Attach Vertex, Remove Vertex Attachment or Cables Edit tools which are designed to do so.

Wire Flex Shape

View

Object Style

Example

Example of WireFlex with Path Type = BSpline_K, Boundary Tangents = True. Boundary Segment Start and Boundary Segment End are > 0. On the first image Inner Tangents property is set to True, on the second to False:

Two wires with different Inner Tangents settings. (1), (3) are the boundary straight edges, (2) is the inner spline edge

.