Tricks for plug-in development.

How to format the date property obtained from diagram or model element

Date is a very important property in model since it recorded the timestamp when a diagram or model element was being created or modified. In Visual Paradigm all diagrams and most of the model elements are having date property for storing its creation date time, as well as the last modified date time. In this article we will show you how to retrieve the date time property and format it into human readable text. 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

How to retrieve model element in your project using Open API

tomcat-thumbVisual Paradigm’s Open API allow user to access the model data in your project in programmatic way by creating plugin. With Open API you can create new diagram or model elements to your project, also retrieve the diagram or model elements form your project and manipulate it. When dealing with model element there are 2 approach we can use to retrieve it from your project. In this article we will teach you how to obtain the model element via Open API. Read more

How to retrieve a diagram in your project using Open API

Visual Paradigm’s Open API allow user to access the model data in your project in programmatic way by creating plugin. With Open API you can create new diagram or model elements to your project, also retrieve the diagram or model elements form your project and manipulate it. Read more

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

Creating Object Diagram using Open API

tomcat-thumbIn Unified Modeling Language the Class Diagram is a typical diagram for model the static structure of a system. The Class Diagram gives developer a clear picture about how the classes are related to each other. But it only model about the static structure, not about the running instance. For the running instance the Class Diagram is realized by the Object Diagram. In this article we will show you how to create object diagram with Open API. 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

Create Activity Diagram using Open API

tomcat-thumbActivity diagram is one of the behavior diagram in Unified Modeling Language (UML) which used to model the flow of control of your system. With the support of model of decision, activity diagram provide graphical representation to present the step-by-step flow of control of your system. Instead of manually create the activity diagram, you can also generate it via Visual Paradigm’s Open API. In this article we will show you how to create activity diagram with Open API. Read more

Create Timing Diagram using Open API

tomcat-thumbTiming diagram in Unified Modeling Language (UML) is a kind of interaction diagram. It is a special form of sequence diagram and focus on the time constraints of the interactions between objects. Instead of manually create the timing diagram, you can also generate it via Visual Paradigm’s Open API. In this article we will show you how to create timing diagram with Open API. Read more

Create Protocol State Machine using Open API

tomcat-thumbThe Protocol State Machine in Unified Modeling Language (UML) helps to express the usage protocol or lifecycle of classifiers. It shows which operations are available for the classifier under which state and conditions, thus provide call sequence of the classifier’s operation. Instead of manually create the protocol state machine, you can also generate it via Visual Paradigm’s Open API. In this article we will show you how to create protocol state machine with Open API. Read more