• Skip to main content
  • assistive.skiplink.to.breadcrumbs
  • assistive.skiplink.to.header.menu
  • assistive.skiplink.to.action.menu
  • assistive.skiplink.to.quick.search
  • Log in
  • Help / Tips Help
    • Online Help
    • Keyboard Shortcuts
    • Feed Builder
    • What’s new
    • About Confluence
  • Search
No Magic Documentation
Hit enter to search
MagicDraw 19.0 LTR SP1

    Content

  • Pages
  • Blog
  • Scroll Documents

    Space Tools

  • Settings
  • Content Tools
  • Apps

36336525
MD190SP1
3
  • Document toolbox Document toolbox
    • Attachments (1)
    • Page History
    • Page Information
    • Resolved comments
    • View in Hierarchy
    • View Source
    • Export to PDF
    • Export to Word
    • Export to HTML
    • Export to PDF
    • Copy Page Tree

Breadcrumbs

  1. Pages
  2. MagicDraw Documentation
  3. User Guide
  4. Report Wizard

Template Creation Tutorial

All material contained herein is considered proprietary information owned by No Magic, Inc. and is not to be shared, copied, or reproduced by any means. All information copyright 2010-2018 by No Magic, Inc. All Rights Reserved.

Introduction

  • What is a Template?

Creating Your First Template

  • Getting a value from a MagicDraw element to a template
  • Importing a template to MagicDraw using Report Wizard

Velocity templating language

  • Velocity variable
  • Velocity Directives
    • #if, #elseif, and #else statement
    • #set statement
    • #foreach statement
    • #macro statement
  • Comment and unparsing code

Report Wizard Directives

  • #forrow directive
    • Using the #forrow directive
  • #forcol directive
  • #forpage directive
    • Creating a new slide for a presentation

Linking report templates to MagicDraw

  • How MagicDraw adds its elements to velocity context
    • Creating a report including the Actor, Use Cases, and diagram image names
  • Supported file types
    • Creating a template for an HTML, a text, an XML, or a DocBook document
    • Creating a template for an OpenDocument spreadsheet or Microsoft Excel spreadsheet
    • Creating a template for an OpenDocument Presentation (ODP) or Microsoft PowerPoint presentation (PPTX)
    • Creating a template for a Rich Text Format or OpenDocument Text document, or Microsoft Word Document (DOCX)

Exercise: Building a simple class diagram report

Related pages

  • Introduction
  • Creating Your First Template
  • Velocity templating language
  • Report Wizard Directives
  • Linking report templates to MagicDraw
  • Exercise: Building a simple class diagram report


No Magic, Inc. Copyright © 1998 – 2025 No Magic, Incorporated, a Dassault Systèmes company – All Rights Reserved.

null