Skip to content

v0.4.2 – shape sizes after reload, association roles, member types

Choose a tag to compare

@Denmurzik Denmurzik released this 12 Oct 15:17
· 1 commit to main since this release
9369126

Fixes found while building class and sequence diagrams for a real project.

Shapes losing their size after reopening a project. Shapes created through the plugin kept Visual Paradigm's "request default size" flag until the diagram was painted in an editor. A project saved before that came back with default-sized shapes (classes 80x40, names and members cut off), and exports of closed diagrams showed the same. Builds now clear the flag. When the tools open a closed diagram (builds, layouts, exports, vp_open_diagram), classes, tables and enumerations are fitted to their content without being made smaller, which also repairs diagrams that were already affected.

  • vp_export_diagram_image opens a closed diagram before rendering it; vp_get_diagram reports whether the diagram is open (opened)
  • vp_add_child refits the owner's shapes, so new attributes/operations show up in the compartments
  • associations are reused only when the given role names, multiplicities and aggregation match: two compositions between the same classes with different roles are no longer merged; association ends are reported as fromEnd / toEnd
  • vp_get_element shows attribute and parameter types (dataType) and operation return types (returnType, including []); vp_find_elements also finds members (attributes, operations, parameters)
  • connectors: waypoints (bend points) on vp_add_connector, build connectors and vp_update_element; a second line between the same two shapes is drawn with a bend automatically; new connectors are drawn between the shape borders instead of along the top edges
  • vp_update_element with the project id renames the project
  • vp_list_types accepts a diagram type such as ClassDiagram

Install: close Visual Paradigm, replace the visual-paradigm-mcp-plugin folder in the plugins directory with the one from the zip, start VP. The skill (visual-paradigm-skill.zip) was updated as well. Restart your agent session to load the new tool schemas.