Plugin to Visual Paradigm’s application.

Posts

How to Create Connectors with Turning Points using Open API

Visual Paradigm’s Open API allows you to create all kind of our supported connectors in diagram. They are not necessary to be in simple straight line form. You can create complex connectors with multiple turning points just like those you created in diagram with your mouse. This article will teach you how to create connectors with turning points using Open API. Read more

Create and Access Logical View via API

Open API not only allows you access the model data within the project, but also create and access the Logical View in your project. This article will show you how to create Logical View using Open API. Read more

How to Create Containment Relationship with API

Open API not only allows you access the model data within the project, but also creating new model elements and connector. This is not only for standard connectors such as association, but also relationships such as containment. This article will show you how to create containment relationship using Open API. Read more

Reload Plugin without Restarting Application

Open API allows you to extend the functionalities of Visual Paradigm’s products by writing simple Java classes. But during development you often need to reload your plugin by restart the application. Starting from version 10 (build 20120720ab) you can reload the plugin on the fly, without restarting the application. This article will teach you how to do this. Read more

How to Insert Model Reference to Documentation Using API

Visual Paradigm supports inserting different linkage into documentation section of a model element, including reference to another model element in your project. You can do this inside the application user interface in few clicks. But how to do this by using Open API? Read more

How to Add Stereotypes from Reference Project to Model Element Using API

Stereotype is one of the extensibility mechanism used in Unified Modeling Language (UML). It allows developers to extend the meaning of a model element. By using stereotype, developer can define domain specific properties to model element and make it suitable for a particular problem domain. Visual Paradigm’s product support defining stereotypes for model, not just via the application interface, but also using Open API. In the old API, you can only specify stereotype to model element from your current working project. Starting from VP Suite 5.2 (build 20110518r), we introduced new interface to let you specify stereotypes from your dependent projects. This article will teach you how to specify a stereotype which is from a dependent to a model element. Read more

How to Retrieve Relationships from Models Using API

A relationship is a connection between model elements, which indicate model elements physically or logically related to each other. Different relationships in UML have their own semantics, and different model elements may have different sets of relationships which can apply to it. This article will show you the types of relationships in VP and how to retrieve them from your model elements. Read more

Create Diagram Image Shape with API

Your diagrams are not necessary to be modeled just with the standard notations. With the Diagram Image Shapes, you can enrich your diagram with customized image files. The Diagram Image Shapes can be created via the prattle of the diagram, as well as using Open API. This article will show you how to create Diagram Image Shapes from an image file deployed in your plugin using Open API. Read more

Create Communication Diagram using Open API

Communication diagram is a kind of behavior diagram in Unified Modeling Language (UML) which helps in visualize the interactions within and between systems. The Communication diagram focus on how objects collaboration together in particular scenario. Instead of creating communication diagram manually, you can also create it programmatically using Open API in Visual Paradigm’s products.

Read more

Creating document with Doc. Composer using Open API

The Doc. Composer allows you to create document for your model in a fully customized way. You can  customize the layout of your document by simply modifying the XML templates and specify what’s inside your document by drag & drop the templates into it, just like creating a diagram. But the drag & drop is a manual process, which you need to do it every time when you want to create a new document. Also after adding new contents, you will need to update it manually by adding the new elements into your existing document. In this article, we will show you how you can make use of the Open API to construct a document in a programmatic way, which can save you a lots of time. Read more