Translations:Part scripting/25/en

This adds a Part object type to the document and assigns the shape representation of the line segment to the 'Shape' property of the added object. It is important to understand here that we used a geometric primitive (the Part.LineSegment) to create a TopoShape out of it (the toShape method). Only Shapes can be added to the document. In FreeCAD, geometry primitives are used as "building structures" for Shapes.