|
Menu location |
---|
TechDraw → Views From Other Workbenches → Insert Draft Workbench Object |
Workbenches |
TechDraw, Draft |
Default shortcut |
None |
Introduced in version |
- |
See also |
TechDraw ArchView |
The TechDraw DraftView tool inserts a view of a selected Part-based or Group object into a drawing page. Unlike the standard View tool, views created with this tool are handled by the
Draft Workbench, and specially designed for showing 2D objects. See Notes.
Draft elements like circles and arrays imported into a TechDraw drawing page
The DraftView is rendered within the Draft Workbench, therefore TechDraw has limited control over its appearance. You may need to make changes within Draft to get the representation you want.
See also: Property editor.
A Draft View, formally a TechDraw::DrawViewDraft
object, has the properties that are common to all View types. It also has the following additional properties:
Draft view
Link
): The Draft object to be displayed.Float
): The width of the lines, independently of the scale.Float
): The size of all texts appearing in this view (texts and dimensions).Vector
): The projection direction to use.Color
): The color of lines.String
): A line style to use for this view. Can be Solid
, Dashed
, Dashdot
, Dot
or an SVG line pattern like 0.20,0.20
.Float
): The spacing between lines to use for multiline texts.Bool
): If true
, line color, width and style of this view will override those of the rendered object.Drawing view
String
): The SVG code defining this symbol.StringList
): Substitution values for the editable strings in this symbol.Link
): Feature to which this symbol is attached. introduced in version 1.0See also: Autogenerated API documentation and FreeCAD Scripting Basics.
The New Draft tool can be used in macros and from the Python console by using the following functions:
dv = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDraft','TestDraft')
dv.Source = myDraftbject
rc = page.addView(dv)