TechDraw ProjectionGroup
|
|
| Menu location |
|---|
| TechDraw → TechDraw Views → Projection Group |
| Workbenches |
| TechDraw |
| Default shortcut |
| None |
| Introduced in version |
| - |
| See also |
| TechDraw View |
Description[edit | edit source]
The TechDraw ProjectionGroup tool creates a multiview projection of one or more 3D objects, using the traditional first- or third-angle projection. The isometric views of the 4 front corners can also be included.
introduced in 1.0: The TechDraw View tool can also create a Projection Group. It is advisable to use that tool instead.
Three orthogonal views and one isometric view of a solid object
Usage[edit | edit source]
See TechDraw View, but to invoke the tool select the TechDraw → TechDraw Views → Projection Group option from the menu.
Properties[edit | edit source]
See also: Property View.
A Projection Group, formally a TechDraw::DrawProjGroup object, has the properties that are common to all View types. It also has the following additional properties:
Data[edit | edit source]
Base
- DataSource (
LinkList): Links to the drawable objects to be depicted. - DataXSource (
XLinkList): Links to the drawable objects in an external file. - DataAnchor (
Link): The central view in the group. Normally the Front view. - DataProjectionType (
Enumeration):First AngleorThird Angle.
Collection
- DataViews (
LinkList): Links to the views in this ProjectionGroup.
Distribute
- DataAuto Distribute (
Bool): Iftrue, space out individual views automatically. Usefalseto position manually. - Dataspacing X (
Length): Horizontal space between views when automatically positioned. Note that Scale and the size of other views in the group also influence the spacing. - Dataspacing Y (
Length): Vertical space between views when automatically positioned.
Notes[edit | edit source]
The ProjectionGroup as a whole inherits X, Y, ScaleType, Scale and Rotation from the basic View.
Individual Views within the group inherit all Part View properties, but the ProjectionGroup object controls the scale of all its member Views.
The RotationVector property of individual Views within the group is deprecated as of v0.19. Use XDirection instead.
Note that the central box displays the current projection direction of the primary view. It cannot be used to change the direction.
Scripting[edit | edit source]
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
A Projection Group can be created with macros and from the Python Console by using the following functions:
import FreeCAD as App
doc = App.ActiveDocument
cyl = doc.addObject("Part::Cylinder", "Cylinder")
doc.recompute()
page = doc.addObject("TechDraw::DrawPage", "Page")
template = doc.addObject("TechDraw::DrawSVGTemplate", "Template")
template.Template = App.getResourceDir() + "Mod/TechDraw/Templates/A4_LandscapeTD.svg"
page.Template = template
# Toggle the visibility of the page to ensure its width and height are updated (hack):
page.Visibility = False
page.Visibility = True
group = doc.addObject("TechDraw::DrawProjGroup", "ProjGroup")
page.addView(group)
group.Source = [cyl]
group.ProjectionType = "Third Angle"
front_view = group.addProjection("Front") # First projection will become the Anchor.
group.Anchor.Direction = (0, 1, 0)
group.Anchor.RotationVector = (1, 0, 0)
left_view = group.addProjection("Left")
top_view = group.addProjection("Top")
group.X = page.PageWidth / 2
group.Y = page.PageHeight / 2
doc.recompute()
Note: The Projection Group should always be added to the Page, page.addView(group), before adding projections to the Group. This allows the Projection Group to use default parameter values derived from the parent page.
- Page: New Page, New Page From Template, Update Template Fields, Redraw Page, Print All Pages, Export Page as SVG, Export Page as DXF
- TechDraw Views: New View, Broken View, Section View, Complex Section View, Detail View, Projection Group, Clip Group, Insert SVG, Bitmap Image, Share View, Project Shape
- Views From Other Workbenches: Active View, Draft View, BIM View, Spreadsheet View
- Dimensions: Dimension, Length Dimension, Horizontal Length Dimension, Vertical Length Dimension, Radius Dimension, Diameter Dimension, Angle Dimension, Angle Dimension From 3 Points, Area Annotation, Horizontal Extent Dimension, Vertical Extent Dimension, Repair Dimension References
- Hatching: Image Hatch, Geometric Hatch
- Symbols: Weld Symbol, Surface Finish Symbol, Hole/Shaft Fit
- Stacking: Stack Top, Stack Bottom, Stack Up, Stack Down
- Attributes/Modifications: Select Line Attributes, Cascade Spacing and Delta Distance, Change Line Attributes, Extend Line, Shorten Line, Toggle View Lock, Position Section View, Align Horizontal Chain Dimensions, Align Vertical Chain Dimensions, Align Oblique Chain Dimensions, Cascade Horizontal Dimensions, Cascade Vertical Dimensions, Cascade Oblique Dimensions, Area Annotation, Arc Length Annotation, Customize Format Label
- Centerlines/Threading: Circle Centerlines, Bolt Circle Centerlines, Cosmetic Thread Hole Side View, Cosmetic Thread Hole Bottom View, Cosmetic Thread Bolt Side View, Cosmetic Thread Bolt Bottom View, Cosmetic Intersection Vertices, Offset Vertex, Cosmetic 1 Point Circle, Cosmetic 2 Point Circle, Cosmetic 3 Point Circle, Cosmetic Arc, Cosmetic Parallel Line, Cosmetic Perpendicular Line
- Format/Organize Dimensions Horizontal Chain Dimension, Vertical Chain Dimension, Oblique Chain Dimension, Horizontal Coordinate Dimension, Vertical Coordinate Dimension, Oblique Coordinate Dimension, Horizontal Chamfer Dimension, Vertical Chamfer Dimension, Arc Length Dimension, Insert '⌀' Prefix, Insert '□' Prefix, Insert 'n×' Prefix, Remove Prefix, Increase Decimal Places, Decrease Decimal Places
- Annotations: Text Annotation, Rich Text Annotation, Balloon Annotation, Axonometric Length Dimension
- Add Lines: Leader Line, Centerline on Face, Centerline Between 2 Lines, Centerline Between 2 Points, Cosmetic Line Through 2 points, Edit Line Appearance, Toggle Edge Visibility
- Add Vertices: Cosmetic Vertex, Midpoint Vertices, Quadrant Vertices
- Miscellaneous: Remove Cosmetic Object
- Additional: Line Groups, Templates, Hatching, Geometric dimensioning and tolerancing, Preferences
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub