TechDraw RichTextAnnotation
Jump to navigation
Jump to search
TechDraw
User documentation
Menu location |
---|
TechDraw → Annotations → Insert Rich Text Annotations |
Workbenches |
TechDraw |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
TechDraw Templates, Draft SVG, LeaderLine |
Description
The RichTextBlock tool adds a formatted annotation block to a LeaderLine or a View.
Stand alone RichTextBlock
How to use
- Press the
RichTextBlock button
- A Task dialog will open. The dialog allows quick entry of text.
- The Start Rich Text Editor button will open a full featured editor. Press the Save icon to record your changes.
- After the block is created, it can be edited by double clicking the RichTextBlock in the Tree.
- To attach the block to a LeaderLine, select the line before starting the RichTextBlock tool.
Properties
- DataX,Y: The location of the block. Relative to the end of the line if attached to a LeaderLine, otherwise this is the position on the page.
- DataShowFrame: Draws an outline around the block.
- DataMaxWidth: Limits the horizontal size of the block. A value of -1 is for unlimited width.
- DataAnnoText: The HTML text of the block.
Scripting
See also: TechDraw API and FreeCAD Scripting Basics.
The RichTextBlock tool can be used in macros and from the Python console.
myPage = FreeCAD.ActiveDocument().Page
myBase = FreeCAD.ActiveDocument().View
blockObj = FreeCAD.ActiveDocument.addObject('TechDraw::DrawRichAnno','DrawRichAnno')
FreeCAD.activeDocument().myPage.addView(blockObj)
blockObj.X = 5
blockObj.Y = 5
blockObj.AnnoText = myHTMLText
Notes
- You can edit your RichTextBlock by double clicking on it in the tree view. Double clicking in the graphics area is not yet supported.
- Pages: Insert Default Page, Insert Page using Template, Redraw Page
- Views: Insert View, Insert Active View, Insert Projection Group, Insert Section View, Insert Detail View, Insert Draft Workbench Object, Insert Arch Workbench Object, Insert Spreadsheet View
- Clips: Insert Clip Group, Add View to Clip Group, Remove View from Clip Group
- Dimensions: New Length, New Horizontal, New Vertical, New Radius, New Diameter, New Angle, New Angle3Pt, New Links, New Balloon
- Decorations: Hatch Face using Image File, Apply Geometric Hatch to Face, Insert SVG Symbol, Insert Bitmap Image, Turn View Frames On/Off
- Annotations: Insert Annotation, Add Leaderline to View, Insert Rich Text Annotation, Add Cosmetic Vertex, Add Midpoint Vertices, Add Quadrant Vertices, Add Centerline to Face(s), Add Centerline between 2 Lines, Add Centerline between 2 Points, Remove Cosmetic Object, Change Appearance of Line(s), Show/Hide Invisible Edges, Add Welding Information to Leader
- Import/Export: Export Page as SVG, Export Page as DXF
- Additional: Preferences; Hatching, LineGroup, Templates; TechDraw API, TechDrawGui API

- 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; Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Raytracing, Reverse Engineering, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Deprecated or unmaintained workbenches: Complete, Drawing, Robot
- Hubs: User hub, Power users hub, Developer hub