Querying Diagram Elements

If you want to retrieve a shape or shapes, and to output content like the shape's name, description, or a list of member elements (e.g. attributes of class, columns of entity), etc., read this section to learn the ways to retrieve shapes (i.e. diagram elements).

Querying Diagram Elements from Specific Diagram

If you need to write a document for a specific diagram, like an ERD report, you may need to insert the details of the containing shapes into your document. In that case, you will want to query diagram elements in a diagram.

If you want to output any detail of a diagram elements in a diagram, write an ${ELEMENT} field in your Word document with LoopInDiagram specified as element source. Here are several examples of such an ${ELEMENT} field:

${ELEMENT, "Tables in ERD", "DBTable", LoopInDiagarm, PROPERTY=name}

${ELEMENT, "List of Classes", "Class", LoopInDiagram, Details}

In the first example, the name of entities on a selected ERD will be output. Note that "Tables in ERD" is the field name, which is a required and unique value for identifying this field.

In the second example, content will be output for classes in the selected diagram, based on the template Children.

When you pick-up a Doc Base with such an ${ELEMENT} field in it, you can select the diagram to query in Doc. Composer.

Related Resources

The following resources may help you to learn more about the topic discussed in this page.

 
10. Querying Model Elements Table of Contents 12. Using Custom Text
 

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.