|
Menu location |
---|
TechDraw → TechDraw Views → Insert Complex Section |
Workbenches |
TechDraw |
Default shortcut |
None |
Introduced in version |
0.21 |
See also |
TechDraw Section, TechDraw View |
The TechDraw ComplexSection tool inserts a cross-section view based on an existing part view and a profile.
A Quarter section view created with the Complex Section tool
An Aligned section view created with the Complex Section tool
An Offset section view created with the Complex Section tool
A Complex Section, formally a TechDraw::DrawComplexSection
object, is derived from a Section View, formally a TechDraw::DrawViewSection
object, and inherits all its properties. It also has the following additional properties:
Cutting Tool
Offset
: Performs a simple cut of the Source shape and projects the result.Aligned
: Cuts the Source shape using a tool created from each segment (edge) of the cutting profile. The results of each cut are projected in a vertical or horizontal array, depending on the orientation of the cutting profile.NoParallel
: As Aligned, but profile segments which are parallel to the view direction are skipped.Vector
) property controls which side of the profile is removed and should point generally in the opposite direction of the line of sight represented by the arrows on the section line. Avoid selecting a DataSection Normal (Vector
) that is parallel to profile segments (especially the first and last segments) as this prevents the correct calculation of section arrow direction and may generate reversed views.See also: Autogenerated API documentation and FreeCAD Scripting Basics.
A Complex Section can be created with macros and from the Python console by using the following functions:
doc = FreeCAD.ActiveDocument
box = doc.Box
profile = doc.Sketch
page = doc.Page
view = doc.addObject("TechDraw::DrawViewPart", "View")
page.addView(view)
view.Source = box
view.Direction = (0, 0, 1)
section = doc.addObject("TechDraw::DrawComplexSection", "ComplexSection")
page.addView(section)
section.BaseView = view
section.CuttingToolWireObject = profile
section.Direction = (0, 1, 0)
section.SectionNormal = (-1, 0, 0)
For some more information about section views and some use cases, have a look at: TechDraw section examples.