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.
Refactoring is a technique of improving your modeling efficiency by allowing you to extract part of a project to a higher level of abstraction so that other (projects) can get the common part(s) included without the need of re-definition. Let's say, for example, you are modeling a vehicle maintenance company. You have created two projects for the distinct parts of the business - Car washing and car repair. When modeling car washing with class diagram, you have found that classes like Car and Manufacturer are also needed by the car repair model. You then refactor them to a referenced project so that the car repair model can link with it and have the classes included.
![]() |
| What is refactoring? |
Refactoring not only reduce the time you need to spend by redefining same project data among projects. It also guarantees the correctness of model definition by enforcing common project data to be defined just once. This is also, in fact, the benefit of using project referencing.
You can refactor model element(s) or a diagram along with its contained element to referenced project. No matter which way you take, make sure project referencing was established. If you are unclear about project referencing, please read the previous chapters.
![]() |
| Open Model Explorer |
![]() |
| Refactor classes |
![]() |
| Delete only views of element, not model elements |
![]() |
| Elements to refactor (including those related elements) |
![]() |
| To re-use referenced classes on current project |
To refactor diagram means to refactor the diagram as well as the elements on the diagram. As the steps are pretty close to refactoring model element, as described above, please read refactor model elements before reading this section.
![]() |
| Refactor a class diagram |
| 5. Duplicating element from linked project | Table of Contents | Chapter 4. Model element nicknaming |
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.