Part Feature

From FreeCAD Documentation
Revision as of 03:40, 29 September 2019 by Vocx (talk | contribs) (New page to describe the base Part::Feature, which can be used to derive every scripted object.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

A Part Feature object, or formally a Part::Feature, is a simple element with a topological Shape associated that can be displayed in the 3D view.

The Part::Feature is defined in the Part Workbench but can be used as the base class for scripted objects in all workbenches that produce 2D and 3D geometrical shapes.

A Part::Feature has simple properties like a placement, and colors to define the appearance of its vertices, edges, and faces. Workbenches can add more properties to this basic element to produce an object with complex behavior.

Properties

See Property for all property types that scripted objects can have.

These are the properties available in the property editor.

Data

  • DataPlacement: the position of the object in the 3D view. The placement is defined by a Base point (vector), and a Rotation (axis and angle).
    • DataAngle: the angle of rotation around the DataAxis.
    • DataAxis: the unit vector that defines the axis of rotation for the placement. Each value is between 0 and 1. If any value is above 1, the vector is normalized so that the magnitude of the vector is 1.
    • DataPosition: the 3D coordinates of the base point of the placement.
  • DataLabel: the user editable description of this object.

View

  • DataAngular Deflection:
  • DataBounding Box:
  • DataDeviation:
  • DataDisplay Mode:
  • DataDraw Style:
  • DataLighting:
  • DataLine Color:
  • DataLine Width:
  • DataOn Top When Selected:
  • DataPoint Color:
  • DataPoint Size:
  • DataSelectable:
  • DataSelection Style:
  • DataShape Color:
  • DataShow In Tree:
  • DataTransparency:
  • DataVisibility: