Tricks for plug-in development.

Create Swimlane in Activity Diagram using Open API

tomcat-thumbIn UML activity diagram the swimlane is a collection of partitions which allows user to group the actions with common characteristics together. The swimlane can have partitions in multi dimensions. In this article we will show you how to create swimlane in activity diagram using Visual Paradigm Open API.

 

Read more

Generate Image Map for your diagram using Open API

Image map allow user to create hyperlink to specific part of an image in a HTML document. With Open API you can export your Visual Paradigm diagram into image file also generate HTML document with image map on it. This allow user click on the shape in diagram image and jump to the URL which you defined. In this article you will show you how to export diagram into image and generate image map for it. Read more

Understanding date time format of comment

When inserting comment to diagram/model element via Open API the date & time look different to those created from GUI.

Comment generated by Open API showing different date time format

Read more

Changing Order of Child Elements using Open API

tomcat-thumbThe Model Explorer is the place which showing entire model collection in your project as well as their structures. Visual Paradigm provide different ways for present the elements in Model Explore by using different sorting algorithms. But even the best sorting algorithms sometimes may not fit you need. In this case you may need to manually order the elements in the order you like. With Open API you can do this programmatically by creating a plugin. In this article we will show you how to change the order of child elements in the selected parent model element. Read more

Control background color of shape using Open API

tomcat-thumbWhen creating diagram sometimes you might want to have shapes showing different background color. To do this you can specify the background color of individual elements one by one. But instead of manually specify the background color shape by shape, you can also do this via Open API. In this article we will demonstrate how to control the background color setting of elements in your active diagram using Visual Paradigm Open API. Read more

Generate CRUD chart for DFD using Open API

tomcat-thumbCRUD (Create, Read, Update & Delete) are the four basic operations which being performed on data. When analyzing a system, relaying various activities and data together with a CRUD chart can help to understand the relationships between different activities, and how they being link together by the data. Visual Paradigm support creating CRUD chart for any model elements in the project. Besides manually create the CRUD chart you can also generate programmatically using Open API. In this article we will teach you how to generate CRUD chart using Open API. Read more

Hiding class attributes using Open API

Visual Paradigm Open API provide Java programming interface for manipulate diagrams and models within the project. In this article we will show you how to hide out attribute from class shape in class diagram. Suppose we would like to hide out the name attribute from Customer class in current opening diagram: Read more

Find out source project of a model element via Open API

The project reference feature in Visual Paradigm allow users to reuse model elements from different projects. This not just saving effort in re-creating same model element again and again across projects, but also maintain the consistence of models as the changes on the model element automatically reflect on the projects which using it. In complex situation such as multiple levels of reference project sometimes it will be difficult to identify the origin of a particular model element, especially when the diagrams are develop by multiple users. By using Open API we can create plugin to find out the origin project of a model element. In this article we will show you how to create this plugin. Read more

Create Grid Diagram using Open API

tomcat-thumbVisual Paradigm allows you to create the Grid Diagram for listing model elements in tabular form, structuring them into a table with elements as rows and properties as columns. The Grid Diagram can either be manipulated directly from the GUI, or through the use of the Open API. This article shows you how to develop a plugin yourself for creating a grid diagram. Use case models will be used for creating the grid diagram in this example as following: Read more

How to Deploy Plugins to VP Products

tomcat-thumbOpen API is an extension mechanism provided by Visual Paradigm for extending the functionalities of the client software. The Open API is in Java based, which allows you to have full access to the model data in your project file. By using Open API, you can create your own plugin to implement some customized features.

Read more