Noul grup de Poiecții TechDraw
Menu location |
---|
TechDraw → Insert Projection Group |
Workbenches |
TechDraw |
Default shortcut |
na |
Introduced in version |
- |
See also |
Descrierea
Instrumentul ProjectionGroup creează proiecții ortografice multiple (https://en.wikipedia.org/wiki/Multiview_orthographic_projection) of one or more 3D objects (Body or Part). Optionally, isometric views of the 4 front corners can be included.
Note that if you only want to produce a single View, there is no advantage in using ProjectionGroup to do so, and in fact creating the View in Projection Group may take considerably longer than the equivalent basic View.
The ProjectionGroup tool creates a multiview projection of one or more 3D objects. The isometric views of the 4 front corners can also be included.
If you only want to produce a single view, there is no advantage in using ProjectionGroup; you should then use Insert View in Page instead. If you do not wish to use the traditional first- / third-angle projection, you should use multiple Views (Insert View in Page) instead of ProjectionGroup.
Three orthogonal views and one isometric view of a solid object
Cum se utilizează
- Select one or more Body and/or Part objects in the 3D window or tree.
- If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.
- Press the 24px Insert Projection Group button
- A dialog will open in which you can select which views should appear in the group, the group's scale and other parameters.
- You can move the group as a whole by dragging the central view. You can also move individual views by dragging.
- Select one or more Body and/or Part objects in the 3D window or tree. If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.
- Press the
Insert Projection Group button.
- A dialog will open in which you can select which views should appear in the group, the group's scale and other parameters:
After you created the Projection Group you can move the group as a whole by dragging the central view. You can also move the projection views by dragging.
Proprietăți
- DataAnchor: The central view in the group. Normally the Front view.
- DataProjectionType: "First Angle" or Third Angle".
- DataAutoDistribute: If true, space out individual views automatically. Use false to position manually.
- DataspacingX: Horizontal space between views when automatically positioned.
- DataspacingY: Vertical space between views when automatically positioned.
- DataAnchor: The central view in the group. Normally the Front view.
- DataProjectionType: "First Angle" or Third Angle".
- DataAutoDistribute: If true, space out individual views automatically. Use false to position manually.
- DataspacingX: Horizontal space between border of views when automatically positioned. Note that Scale and the size of other views in the group also influence the spacing.
- DataspacingY: Vertical space between border of views when automatically positioned.
Notă: The ProjectionGroup as a whole inherits X,Y,ScaleType,Scale and Rotation from the basic View. Note: Individual Views within the group inherit all part view properties, but the ProjectionGroup object controls the scale of all its member Views.
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.
Script
PojGroups pot fi adăugate la Pages utilizând Python.
See also: TechDraw API and FreeCAD Scripting Basics.
The NewProjGroup tool can be used in macros and from the Python console. A full script is available in the Source distribution in "source-dir/src/Mod/TechDraw/TDTest/DProjGroupTest.py".
#make a page
print("making a page")
page = FreeCAD.ActiveDocument.addObject('TechDraw::DrawPage','Page')
FreeCAD.ActiveDocument.addObject('TechDraw::DrawSVGTemplate','Template')
FreeCAD.ActiveDocument.Template.Template = templateFileSpec
FreeCAD.ActiveDocument.Page.Template = FreeCAD.ActiveDocument.Template
#make projection group
group = FreeCAD.ActiveDocument.addObject('TechDraw::DrawProjGroup','ProjGroup')
rc = page.addView(group)
group.Source = [fusion]
#add Front(Anchor) view
frontView = group.addProjection("Front") ##need an Anchor
#update group
group.Anchor.Direction = FreeCAD.Vector(0,0,1)
group.Anchor.RotationVector = FreeCAD.Vector(1,0,0)
#add more projections
leftView = group.addProjection("Left")
topView = group.addProjection("Top")
rightView = group.addProjection("Right")
rearView = group.addProjection("Rear")
BottomView = group.addProjection("Bottom")
#remove a view from projection group
iv = group.removeProjection("Left")
Programming note: The Projection Group should always be added to the Page (ex. page.addView(group) before adding projections to the Group. This allows the Projection Group to use default parameter values derived from the parent page.
- Pages: New Default, New Pick
- Views: New View, New Projection Group, New Section, New Detail, New Annotation, New Draft, New Arch, Spreadsheet
- Clips: Clip, ClipPlus, ClipMinus
- Dimensions: New Length, New Horizontal, New Vertical, New Radius, New Diameter, New Angle, New Angle3Pt, New Links
- Decoration: Hatch Area, Geometric Hatch, New Symbol, New Image, Toggle Frames
- Utilities: SaveSVG, SaveDXF
- Additional: Preferences, Import-Export Preferences; Hatching, LineGroup, Templates; TechDraw API, TechDrawGui API

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting