Tricks for plug-in development.

Export model to CSV

tomcat-thumbCSV (comma-separated values) file is a very common file format for saving textual data in table structure. Each line in the CSV file is presenting an entry, while fields in each record is speared by commas (or other separator). Data in CSV can be used with any spreadsheet program, or even for exchange of information between applications. In this article we will show you how you can make use of Visual Paradigm Open API to create a plugin which export the use case models in your project into a CSV file.

Read more

Control Shape Line Style using Open API

tomcat-thumbWhen creating diagrams sometimes you might want to have the shape showing different line styles, i.e. to have better presentation for your diagram with important elements easily spotted out. In this case you may adjust the line style to make the element looks different. To do this you can specify the line style of the individual element via the user interface. But instead of manually specify the line style shape by shape, you can also do this via the Open API. In this article we will use Class as sample to demonstrate how to control its line style with Visual Paradigm’s Open API. Read more

How to Define Stereotype and Tagged Values using API

Stereotype is one of the extension mechanisms in the Unified Modeling Language (UML). By defining stereotype, you can extend new notations by deriving from an existing one. You can define new properties to your derived notations using tagged values. In Visual Paradigm, it is not necessary to stereotypes and tagged values using application’s user interface. You can also do this using Open API. This article will show you how to create stereotype and tagged values using Open API. Read more

Insert Implementation Code to Operation via Open API

Visual Paradigm support defining implementation detail to operation model via the specification dialog. Besides you can also do this via Open API. In this example we will show you how to create a simple class model with an operation, and specify its implementation. 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

Create Generalization Set using Open API

tomcat-thumbThe generalization set defines a set of generalization relationship that describe how the superclass may be divided by a set of subclasses. The generalization defined in the set can group together in diagram for better presentation of the model. The generalization set can defined via the GUI on diagram or using Open API. In this article you will learn how to create generalization set using Open API in Visual Paradigm. Read more

Changing Background Color of Class Attributes using Open API

In class diagram the background color can apply to the entire class, or apply to individual class member. In this article we will demonstrate how to control the background color setting of class attributes in your activate diagram using Visual Paradigm Open API. Read more

Changing connector styles using Open API

Visual Paradigm support diagramming with various connector styles. In this article we will show you how to change the style of a connector using Open API. We will use class diagram and association as example to demonstrate how to change the connector style. Read more

Create Class Diagram using Open API

tomcat-thumbClass Diagram from Unified Modeling Language is a typical diagram used to model the structure of a system. Class Diagram is one of the major diagram in object oriented modeling. The classes being modeled in class diagram can become the main objects in your system, describing the interactions of the application as well as the classes needed to be implement. Instead of creating class diagram manually, you can also create it programmatically using Open API. In this article we will show you how to create class diagram with Visual Paradigm’s Open API. Read more

Layout diagram using Open API

Visual Paradigm bundled with auto-layout engine which help user to perform auto layout to their diagrams. The auto-layout can triggered via user interface as well as via Open API. In this article we will teach you how to layout your diagram via Open API. Read more