# \#generate-document

**URL:** https://forums.visual-paradigm.com/tag/generate-document/23.md

[Latest](https://forums.visual-paradigm.com/latest.md) · [Categories](https://forums.visual-paradigm.com/categories.md) · [Tags](https://forums.visual-paradigm.com/tags.md)

---

## [Processing SysML blocks based on "y" position when accessing through relationships](https://forums.visual-paradigm.com/t/processing-sysml-blocks-based-on-y-position-when-accessing-through-relationships/22622)

<div class="topic-metadata">

**Author:** [@KenGarlington](https://forums.visual-paradigm.com/u/KenGarlington)\
**Replies:** 2\
**Last updated:** [December 11, 2025, 1:46pm UTC](https://forums.visual-paradigm.com/t/processing-sysml-blocks-based-on-y-position-when-accessing-through-relationships/22622 "2025-12-11T13:46:46Z")

</div>

I’m using Doc. Composer element templates to embed paragraphs in a Word document. Currently, the templates take a “root” SysML block, and recursively process “child” SysML blocks that are related to the “parent” via a sh…

---

## [Requirement ID in SRS](https://forums.visual-paradigm.com/t/requirement-id-in-srs/21405)

<div class="topic-metadata">

**Author:** [@EricNorth](https://forums.visual-paradigm.com/u/EricNorth)\
**Replies:** 5\
**Last updated:** [March 11, 2025, 1:29am UTC](https://forums.visual-paradigm.com/t/requirement-id-in-srs/21405 "2025-03-11T01:29:30Z")

</div>

I am currently evaluating VP to see if it will do what we need. Once we are confident that it has what we need we will purchase a license and build our full model. In my test model I have created a small number of use c…

---

## [RTL on Arabic Text](https://forums.visual-paradigm.com/t/rtl-on-arabic-text/21094)

<div class="topic-metadata">

**Author:** [@snvisual](https://forums.visual-paradigm.com/u/snvisual)\
**Replies:** 0\
**Last updated:** [August 21, 2024, 3:21pm UTC](https://forums.visual-paradigm.com/t/rtl-on-arabic-text/21094 "2024-08-21T15:21:33Z")

</div>

Hello, I am trying to export Arabic text from a Text Artefact to MS Word. I have tried adding XML properties to force right-to-left, but it didnt work when creating the MS Word document. What am I missing? Thank you. …

---

## [Generating swagger/openapi - different order](https://forums.visual-paradigm.com/t/generating-swagger-openapi-different-order/18191)

<div class="topic-metadata">

**Author:** [@dtapi](https://forums.visual-paradigm.com/u/dtapi)\
**Replies:** 3\
**Last updated:** [September 5, 2023, 6:01am UTC](https://forums.visual-paradigm.com/t/generating-swagger-openapi-different-order/18191 "2023-09-05T06:01:02Z")

</div>

Hello, I have another question regarding generating open api from diagram. While regenerating document it has different order of components from time to time so keeping up with changes done to exported yaml is messy… …

---

## [Can't get ParagraphStyle to work](https://forums.visual-paradigm.com/t/cant-get-paragraphstyle-to-work/17835)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 8:44pm UTC](https://forums.visual-paradigm.com/t/cant-get-paragraphstyle-to-work/17835 "2023-03-29T20:44:18Z")

</div>

I have a couple of instances where I’m trying to use ParagaphStyle but I just can’t get it to work. The first one is I’m generating a heading with the call signature of an Operation in a class: \<ParagraphStyle name="@h…

---

## [Dialog to reorder elements in a diagram](https://forums.visual-paradigm.com/t/dialog-to-reorder-elements-in-a-diagram/17867)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 9:58pm UTC](https://forums.visual-paradigm.com/t/dialog-to-reorder-elements-in-a-diagram/17867 "2023-02-09T21:58:05Z")

</div>

When generating a document, it is critically important that the elements in a diagram be output in a sensible sequence. You can imagine an Activity Diagram, for example, that has gone through several iterations would out…

---

## [Remove trailing paragraph breaks (or whitespace in general)](https://forums.visual-paradigm.com/t/remove-trailing-paragraph-breaks-or-whitespace-in-general/17841)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 2\
**Last updated:** [February 8, 2023, 3:16pm UTC](https://forums.visual-paradigm.com/t/remove-trailing-paragraph-breaks-or-whitespace-in-general/17841 "2023-02-08T15:16:19Z")

</div>

When generating a document, formatting is critical for presentation purposes. One of the problems I have is with paragraph breaks, which I want absolute control over, as they affect the way paragraphs break across a page…

---

## [Accessing sub-diagram of class method in Doc Composer](https://forums.visual-paradigm.com/t/accessing-sub-diagram-of-class-method-in-doc-composer/17832)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 8:38am UTC](https://forums.visual-paradigm.com/t/accessing-sub-diagram-of-class-method-in-doc-composer/17832 "2023-01-16T08:38:13Z")

</div>

In a Class object, I can reference an Activity Diagram and output it in Doc Composer as follows: \<HasSubDiagramChecker diagramType="ActivityDiagram"\> \<Text style="@heading+"\>Implementation\</Text\> \<ParagraphBreak/\> …

---

## [Add "Style" tag to Doc Composer](https://forums.visual-paradigm.com/t/add-style-tag-to-doc-composer/16965)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 6\
**Last updated:** [August 31, 2022, 12:54pm UTC](https://forums.visual-paradigm.com/t/add-style-tag-to-doc-composer/16965 "2022-08-31T12:54:34Z")

</div>

Rather than having a “style” attribute in selected tags, I would like to see a “Style” tag, independent of them, with some additional features. The reason I’m asking for this is that I’ve run into a problem with the “Im…

---

## [Iterate over pre or postcondition entries](https://forums.visual-paradigm.com/t/iterate-over-pre-or-postcondition-entries/17395)

<div class="topic-metadata">

**Author:** [@Zsolt\_Sandor](https://forums.visual-paradigm.com/u/Zsolt_Sandor)\
**Replies:** 4\
**Last updated:** [February 4, 2022, 1:18am UTC](https://forums.visual-paradigm.com/t/iterate-over-pre-or-postcondition-entries/17395 "2022-02-04T01:18:31Z")

</div>

Hello, I would like to create a template for a Use Case where the use case contains both pre and postconditions, but the value of the pre or postconditions consist of a list of requirements. I can display the value of a…

---

## [How to Generate ForEachSimpleRelationship each in a separate Row in a table](https://forums.visual-paradigm.com/t/how-to-generate-foreachsimplerelationship-each-in-a-separate-row-in-a-table/17293)

<div class="topic-metadata">

**Author:** [@Shweta](https://forums.visual-paradigm.com/u/Shweta)\
**Replies:** 5\
**Last updated:** [January 5, 2022, 7:09am UTC](https://forums.visual-paradigm.com/t/how-to-generate-foreachsimplerelationship-each-in-a-separate-row-in-a-table/17293 "2022-01-05T07:09:56Z")

</div>

How can I get the values of ForEachSimpleRelationship iteration in a separate TableRow? With the below code snippet, I get runtimeException viz: "java.lang.RuntimeException: tableBlock\> cannot contain the content (e.g …

---

## [Add breakString to ForEachSubDiagram](https://forums.visual-paradigm.com/t/add-breakstring-to-foreachsubdiagram/17008)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 1\
**Last updated:** [September 2, 2021, 3:43am UTC](https://forums.visual-paradigm.com/t/add-breakstring-to-foreachsubdiagram/17008 "2021-09-02T03:43:33Z")

</div>

I want to list all Activity sub-diagrams as shown below, with commas separating each name. However, the breakString property is not supported. Please add it to ForEachSubDiagram and any other loop tags that may be missin…

---

## [Update documentation for Doc Composer](https://forums.visual-paradigm.com/t/update-documentation-for-doc-composer/16966)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 4\
**Last updated:** [August 17, 2021, 3:28pm UTC](https://forums.visual-paradigm.com/t/update-documentation-for-doc-composer/16966 "2021-08-17T15:28:10Z")

</div>

The documentation for Doc Composer is incomplete. I see pre-existing templates with attributes that don’t have documentation (e.g., the “anchorMark” attribute for the “Property” tag). I also noticed that the “ParagraphBr…

---

## [Provide detailed dictionary of all available properties](https://forums.visual-paradigm.com/t/provide-detailed-dictionary-of-all-available-properties/16972)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 0\
**Last updated:** [August 16, 2021, 9:56pm UTC](https://forums.visual-paradigm.com/t/provide-detailed-dictionary-of-all-available-properties/16972 "2021-08-16T21:56:51Z")

</div>

I recently posted a question regarding a property to identify the master view in Doc Composer. The answer was simple, but it should not have been necessary for me to ask in the first place. There should be a detailed dic…

---

## [Filtering out auxiliary views in Doc Composer](https://forums.visual-paradigm.com/t/filtering-out-auxiliary-views-in-doc-composer/16962)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 4\
**Last updated:** [August 16, 2021, 3:11am UTC](https://forums.visual-paradigm.com/t/filtering-out-auxiliary-views-in-doc-composer/16962 "2021-08-16T03:11:18Z")

</div>

I’m breaking up a class diagram into multiple class diagrams. Some of the classes appear as base classes across multiple diagrams; for each base class, only one diagram holds the master view and everything else is an aux…

---

## [Class diagram keeps deleted models causing failures](https://forums.visual-paradigm.com/t/class-diagram-keeps-deleted-models-causing-failures/16862)

<div class="topic-metadata">

**Author:** [@LibAdri](https://forums.visual-paradigm.com/u/LibAdri)\
**Replies:** 2\
**Last updated:** [June 14, 2021, 11:32am UTC](https://forums.visual-paradigm.com/t/class-diagram-keeps-deleted-models-causing-failures/16862 "2021-06-14T11:32:06Z")

</div>

Class diagram continues to keep trace of deleted models (in my case REST APIs). There is no trace of the deleted objects in the diagram navigation tree, but in the specifications of the diagram they continue to be liste…

---

## [Doc Composer - Actor and Use case style](https://forums.visual-paradigm.com/t/doc-composer-actor-and-use-case-style/16854)

<div class="topic-metadata">

**Author:** [@BGeorge](https://forums.visual-paradigm.com/u/BGeorge)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 2:47am UTC](https://forums.visual-paradigm.com/t/doc-composer-actor-and-use-case-style/16854 "2021-06-08T02:47:00Z")

</div>

Hello, I am trying to export Use case which has actor, include use case, and other controls. This is what my use case looks like. This is how Doc composer displays it This is my xml template I would like the A…

---

## [Doc.Composer SetVar/Var enhancement](https://forums.visual-paradigm.com/t/doc-composer-setvar-var-enhancement/16793)

<div class="topic-metadata">

**Author:** [@Q-field](https://forums.visual-paradigm.com/u/Q-field)\
**Replies:** 1\
**Last updated:** [May 5, 2021, 1:04am UTC](https://forums.visual-paradigm.com/t/doc-composer-setvar-var-enhancement/16793 "2021-05-05T01:04:53Z")

</div>

Doc.Composer is a powerful tool for generating various kinds of documents. I tried making some documents contain statistical tables by it recently. After digging some references (Writer’s guide, DCTL XML Schema, etc.), …

---

## [Resolution loss of screenshots and pictures in description field](https://forums.visual-paradigm.com/t/resolution-loss-of-screenshots-and-pictures-in-description-field/16740)

<div class="topic-metadata">

**Author:** [@EJSmit](https://forums.visual-paradigm.com/u/EJSmit)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 6:57am UTC](https://forums.visual-paradigm.com/t/resolution-loss-of-screenshots-and-pictures-in-description-field/16740 "2021-04-14T06:57:06Z")

</div>

Hi all, I have a problem when I copy a hi resolution screenshot or picture into the description field of a process. The quality of the image seriously deteriorates when I copy it into the description field. It makes the…

---

## [Duplicate and remove Build doc's in Doc. Composer](https://forums.visual-paradigm.com/t/duplicate-and-remove-build-docs-in-doc-composer/16250)

<div class="topic-metadata">

**Author:** [@EJSmit](https://forums.visual-paradigm.com/u/EJSmit)\
**Replies:** 1\
**Last updated:** [August 12, 2020, 11:58pm UTC](https://forums.visual-paradigm.com/t/duplicate-and-remove-build-docs-in-doc-composer/16250 "2020-08-12T23:58:38Z")

</div>

Does anyone know if it is possible to duplicate a document you’ve build from scratch in the Doc. Composer? Can’t find the option. Can’t remove any earlier trail versions either. Hope you can help me out! Kind Regards, …

---

## [Passing values from Open API to XML Template to be then written to Word Doc Generated](https://forums.visual-paradigm.com/t/passing-values-from-open-api-to-xml-template-to-be-then-written-to-word-doc-generated/16122)

<div class="topic-metadata">

**Author:** [@lalitnagpal](https://forums.visual-paradigm.com/u/lalitnagpal)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 6:24am UTC](https://forums.visual-paradigm.com/t/passing-values-from-open-api-to-xml-template-to-be-then-written-to-word-doc-generated/16122 "2020-06-15T06:24:33Z")

</div>

I am using the Open API code to apply a template ( DCTL XML template ) and generate a doc from scratch. My need is to supply some value from Java code to the XML template which can then write to my word document generate…

---

## [Applying a Header before a template in Open API](https://forums.visual-paradigm.com/t/applying-a-header-before-a-template-in-open-api/16123)

<div class="topic-metadata">

**Author:** [@lalitnagpal](https://forums.visual-paradigm.com/u/lalitnagpal)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 7:51am UTC](https://forums.visual-paradigm.com/t/applying-a-header-before-a-template-in-open-api/16123 "2020-06-08T07:51:33Z")

</div>

Can I apply a header from Open API code before applying a template when generating using doc from scratch. IReportDiagramOption reportDiagramOption = IModelElementFactory.instance().createReportDiagramOption(); report…

---

## [How to get the Layer a element belongs to in DCTL](https://forums.visual-paradigm.com/t/how-to-get-the-layer-a-element-belongs-to-in-dctl/16102)

<div class="topic-metadata">

**Author:** [@lalitnagpal](https://forums.visual-paradigm.com/u/lalitnagpal)\
**Replies:** 1\
**Last updated:** [May 28, 2020, 2:29am UTC](https://forums.visual-paradigm.com/t/how-to-get-the-layer-a-element-belongs-to-in-dctl/16102 "2020-05-28T02:29:51Z")

</div>

How can I get the layers that a diagram element belongs to in DCTL XML code. We can get the Diagram a component belongs to like this ( for example for all ArchiMateAssessment ). \<IterationBlock modelTypes="ArchiMateAsse…

---

## [Open API Examples](https://forums.visual-paradigm.com/t/open-api-examples/16017)

<div class="topic-metadata">

**Author:** [@lalitnagpal](https://forums.visual-paradigm.com/u/lalitnagpal)\
**Replies:** 10\
**Last updated:** [May 8, 2020, 8:30am UTC](https://forums.visual-paradigm.com/t/open-api-examples/16017 "2020-05-08T08:30:27Z")

</div>

Hi Team, Please can someone point me to code examples ( open API code ) of how to do the following generate Table of Contents - the following didn’t work for me IRDTableOfContentsTemplate currentRDTableOfContentsTemp…

---

## [Data dictionary in logical order](https://forums.visual-paradigm.com/t/data-dictionary-in-logical-order/16049)

<div class="topic-metadata">

**Author:** [@KDean](https://forums.visual-paradigm.com/u/KDean)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 5:49pm UTC](https://forums.visual-paradigm.com/t/data-dictionary-in-logical-order/16049 "2020-04-30T17:49:33Z")

</div>

I’m using the document generator on an entity relationship diagram. Both the “Data Dictionary” and “Data Dictionary 2” templates sort the column names alphabetically. Is there a way to display them in the same logical or…

---

## [Generate Word Doc using Open API for ArchiMate Diagram](https://forums.visual-paradigm.com/t/generate-word-doc-using-open-api-for-archimate-diagram/16003)

<div class="topic-metadata">

**Author:** [@lalitnagpal](https://forums.visual-paradigm.com/u/lalitnagpal)\
**Replies:** 6\
**Last updated:** [April 15, 2020, 8:13am UTC](https://forums.visual-paradigm.com/t/generate-word-doc-using-open-api-for-archimate-diagram/16003 "2020-04-15T08:13:02Z")

</div>

Hi All, I have the following requirement, if someone can help point me to useful code/ docs that can help a) My project has a ArchiMate diagram b) My diagram has ‘N’ different states ( captured as layers ) - so for ex…

---

## [Create a heirarchical document (Model -\> Package(s) -\> Classes)](https://forums.visual-paradigm.com/t/create-a-heirarchical-document-model-package-s-classes/15680)

<div class="topic-metadata">

**Author:** [@AJD](https://forums.visual-paradigm.com/u/AJD)\
**Replies:** 5\
**Last updated:** [December 19, 2019, 3:32am UTC](https://forums.visual-paradigm.com/t/create-a-heirarchical-document-model-package-s-classes/15680 "2019-12-19T03:32:24Z")

</div>

I have looked in the VP documents and searched on-line, but cannot find an easy answer to what I am trying to do. I have a project that I want to document. From the trunk I have a series of models. Some of these models …

---

## [How to exclude few Attribute values from the published HTML document](https://forums.visual-paradigm.com/t/how-to-exclude-few-attribute-values-from-the-published-html-document/15290)

<div class="topic-metadata">

**Author:** [@Nikhil\_Bhatia](https://forums.visual-paradigm.com/u/Nikhil_Bhatia)\
**Replies:** 2\
**Last updated:** [May 28, 2019, 7:27am UTC](https://forums.visual-paradigm.com/t/how-to-exclude-few-attribute-values-from-the-published-html-document/15290 "2019-05-28T07:27:23Z")

</div>

Finding out a way to exclude or suppress few details during class publish to document. Eg. we create a class called ‘Person’ having attributes as ‘firstName’ and ‘lastName’ and when we try to publish the html out of it …

---

## [Changing styles for doc composer](https://forums.visual-paradigm.com/t/changing-styles-for-doc-composer/15122)

<div class="topic-metadata">

**Author:** [@Swimszoots](https://forums.visual-paradigm.com/u/Swimszoots)\
**Replies:** 2\
**Last updated:** [March 27, 2019, 3:41am UTC](https://forums.visual-paradigm.com/t/changing-styles-for-doc-composer/15122 "2019-03-27T03:41:17Z")

</div>

Hello, I’m having an issue with getting the styles to work properly in my generated documents. I want to a) remove the numbering from lines with “Heading x” style and b) Change the font and size for various elements. …

---

## [How can I adress a specific Model Element or Diagram as Query-Parameter (Fill-In Doc)](https://forums.visual-paradigm.com/t/how-can-i-adress-a-specific-model-element-or-diagram-as-query-parameter-fill-in-doc/14980)

<div class="topic-metadata">

**Author:** [@vhalstenbach](https://forums.visual-paradigm.com/u/vhalstenbach)\
**Replies:** 3\
**Last updated:** [March 1, 2019, 8:07am UTC](https://forums.visual-paradigm.com/t/how-can-i-adress-a-specific-model-element-or-diagram-as-query-parameter-fill-in-doc/14980 "2019-03-01T08:07:07Z")

</div>

Hi there, when creating a Fill-In Doc I want to adress a specific DIAGRAM or ELEMENT of my model without having to select it later on in VP DocComposer. Eg. I would like to place a statement like perhaps ${DIAGRAM, “U…

[Next page](https://forums.visual-paradigm.com/tag/generate-document/23.md?match_all_tags=true&page=1&tags%5B%5D=generate-document)
