EM FHSegment

Description
The FHSegment tool inserts a FastHenry segment object.



How to use
The FHSegment object can be based on the position of a Draft Line object, or on two existing FHNodes that will be the FHSegment end points, or you can select the 3D location of the two end points, where two additional FHNodes will be created.


 * 1) Press the  button, or press  then  keys.
 * 2) Click a first point on the 3D view, or type a coordinate and press the  button.
 * 3) Click a second point on the 3D view, or type a coordinate and press the  button.

Alternatively, you can also:


 * 1) Select two FHNode objects
 * 2) Press the  button, or press  then  keys.

Or:


 * 1) Select one or multiple Draft Line object(s)
 * 2) Press the  button, or press  then  keys. As many FHSegment objects will be created as the Draft Line objects.

Remark: if you create a FHSegment object based on a Draft Line object, you can NOT freely move the FHSegment or the end point FHNodes. The FHSegment will always be constrained to the base object. To change the position of the FHSegment, or of its end point, change the underlying Draft Line object (the base object is hidden by default, you can show it again by selecting the object in the tree and pressing.

Options

 * To enter coordinates manually, simply enter the numbers, then press between each X, Y and Z component. You can press the  button when you have the desired values to insert the point.
 * Press or the  button to abort the current command.

Properties

 * : the X coordinate of the node
 * : the Y coordinate of the node
 * : the Z coordinate of the node

Scripting
FreeCAD Scripting Basics.

The FHNode object can be used in macros and from the Python console by using the following function:


 * Creates a object.
 * is the Draft Point object whose position can be used as base for the FNNode. It has priority over, , . If no is given, ,, are used as coordinates.
 * x coordinate of the node, in absolute coordinate system.
 * y coordinate of the node, in absolute coordinate system.
 * z coordinate of the node, in absolute coordinate system.
 * is the node color, e.g. a tuple (1.0,0.0,0.0). Defaults to.
 * is the node size. Defaults to.
 * is the name of the object

The placement of the FHNode can be changed by modifying its property, or changing the ,, properties individually. Changing ,, modifies the node position in the relative coordinate system of the.

Additionally, the _FHNode class exposes these methods. The _FHNode class can be accessed through the FHNode object Proxy (e.g. fhnode.Proxy).


 * Get a containing the node coordinates in the absolute reference system


 * Get a containing the node coordinates relative to the FHNode Placement


 * Sets the node position relative to the placement
 * is a FreeCAD.Vector containing the node coordinates relative to the FHNode Placement
 * is a new FHNode placement. If, the placement is not changed


 * Sets the absolute node position, considering the object placement, and in case forcing a new placement
 * is a FreeCAD.Vector containing the node coordinates in the absolute reference system
 * is a new FHNode placement. If, the placement is not changed

Example: