Sweeper and Magnet Tools in Visual Paradigm Desktop

A well-organized diagram is easier to understand, review, and maintain. However, diagrams often need to change as a project develops. A new step may need to be inserted into a sequence, additional activities may need to be added to a business process, or existing elements may need more room to accommodate longer labels and new relationships.

Manually moving individual shapes to create or reduce space can be time-consuming. It can also disturb the positions of other elements and make it difficult to preserve the overall layout.

Visual Paradigm Desktop provides two diagram-editing utilities to make this type of adjustment easier: Sweeper and Magnet.

Sweeper helps expand the spacing between diagram elements by moving elements aside along a horizontal or vertical path. Magnet performs the opposite operation: it reduces spacing by moving elements closer together.

Both tools let users adjust diagram layout by dragging across the diagram canvas, rather than manually selecting and repositioning each affected shape.

These utilities are particularly useful when editing UML Sequence Diagrams and BPMN Business Process Diagrams, where adding or removing space between multiple elements is a frequent task.

What Are Sweeper and Magnet?

Sweeper and Magnet are diagram-layout utilities in Visual Paradigm Desktop. They provide a direct way to adjust the spacing of diagram elements through a mouse-dragging operation on the diagram pane.

The two tools have complementary purposes:

  • Sweeper: Expands the space between diagram elements by moving elements apart.
  • Magnet: Reduces the space between diagram elements by moving elements closer together.

Rather than moving one shape at a time, users drag a horizontal or vertical line across the diagram. The tool adjusts the elements affected by that movement.

The key difference is the direction of the spacing adjustment: Sweeper creates more room, while Magnet removes excess room.

Why Are Sweeper and Magnet Useful?

Diagram layouts often need to be revised after the initial modeling work has been completed.

For example, a Sequence Diagram may need an additional message and activation, or a Business Process Diagram may need a new task inserted between two existing activities.

If the diagram is already crowded, adding an element can require space to be created first. If the diagram has become unnecessarily large after removing elements, the remaining shapes may need to be brought closer together.

Sweeper and Magnet make these adjustments more convenient.

Create room for new elements

When a new shape, message, or process step needs to be inserted, Sweeper can expand the available space in the relevant area.

This reduces the need to move each affected element individually.

Reduce unnecessary whitespace

After editing a diagram, some areas may contain more space than necessary.

Magnet helps reduce these gaps by bringing diagram elements closer together. This can make the diagram more compact and easier to present or print.

Preserve the general arrangement

Both tools are designed to move diagram elements together in response to a drag across the canvas.

This is useful when the goal is to adjust spacing without individually repositioning every element involved.

Make diagram refinement faster

Instead of selecting multiple shapes and moving them one by one, users can apply a sweeping or magnetic movement across the diagram pane.

This makes repeated layout adjustments more efficient.

How Sweeper Works

Sweeper is used when additional space is needed between diagram elements.

It works by allowing the user to drag a horizontal or vertical line across the diagram pane. The elements affected by the sweep are moved to create more room.

Activate Sweeper

Open the diagram that needs more space.

Click the Sweeper button on the diagram toolbar to activate the tool.

Choose where to expand the space

Move the pointer to the area of the diagram where the spacing adjustment is required.

The position of the drag determines the area in which the elements will be moved.

Drag horizontally or vertically

Hold down the mouse button and move the pointer horizontally or vertically across the diagram pane.

Sweeper moves the affected diagram elements to increase the spacing between them.

For example, dragging horizontally can create additional room between elements arranged from left to right. Dragging vertically can create more room between elements arranged from top to bottom.

Review the adjusted layout

After the sweep, inspect the diagram to ensure that the new space is sufficient and that the overall arrangement remains clear.

If additional space is required, repeat the operation in the appropriate area.

How Magnet Works

Magnet is used when the diagram contains too much space and the elements need to be brought closer together.

It uses a similar interaction to Sweeper, but the effect is the opposite.

Activate Magnet

Open the diagram that needs to be made more compact.

Click the Magnet button on the diagram toolbar.

Choose the area to compact

Move the pointer to the area of the diagram where the spacing should be reduced.

Drag horizontally or vertically

Hold down the mouse button and move the pointer horizontally or vertically across the diagram pane.

Magnet moves the affected diagram elements closer together, reducing the space between them.

Review the result

Inspect the diagram to confirm that the reduced spacing still leaves sufficient room for labels, connectors, and other visual information.

If the diagram is still too spread out, repeat the operation where appropriate.

Sweeper vs. Magnet

Although both tools adjust diagram spacing, they serve opposite purposes.

Aspect Sweeper Magnet
Primary purpose Increase spacing Reduce spacing
Effect on diagram Moves affected elements apart Moves affected elements closer together
Typical use Make room for new elements Remove unnecessary gaps
Interaction Drag horizontally or vertically across the diagram pane Drag horizontally or vertically across the diagram pane
Useful result More room for editing A more compact layout

The choice is straightforward: use Sweeper when the diagram needs more room, and Magnet when the diagram needs less.

Practical Examples

Add a message to a UML Sequence Diagram

Sequence Diagrams represent interactions between lifelines over time. As more messages, activations, and combined fragments are added, the diagram can become crowded.

Suppose a modeler has an existing interaction between a Customer, Order Service, and Payment Service. A new validation message needs to be inserted between two existing messages.

The modeler can use Sweeper to create additional vertical space in the relevant part of the diagram.

This makes it easier to position the new interaction without manually moving every message and activation.

Compact a UML Sequence Diagram

The opposite situation can occur when messages or interaction fragments are removed.

The remaining messages may be spread farther apart than necessary.

Using Magnet, the modeler can reduce the vertical spacing and make the interaction easier to review.

Insert a task into a BPMN Business Process Diagram

A business process may need a new activity between two existing tasks.

If the process is arranged horizontally, Sweeper can create additional horizontal space where the new activity needs to be inserted.

The modeler can then add the task and connect it to the appropriate flow.

Reduce whitespace in a business process

After process revisions, a BPMN diagram may contain excessive gaps between tasks, events, and gateways.

Magnet can bring the affected elements closer together, making the process more compact and suitable for presentation or printing.

Refine a diagram after a major revision

When a diagram has been updated several times, its layout may no longer be as balanced as it was originally.

Sweeper and Magnet provide a convenient way to make localized spacing adjustments as part of the final diagram-cleanup process.

Sweeper and Magnet in Sequence Diagrams and BPMN Diagrams

Visual Paradigm specifically highlights UML Sequence Diagrams and BPMN Business Process Diagrams as useful contexts for Sweeper and Magnet.

These diagram types often contain elements arranged in ordered sequences, making spacing adjustments particularly important.

Sequence Diagrams

In a Sequence Diagram, vertical positioning communicates the order of interactions over time.

Adding or removing messages may require the modeler to adjust the space between multiple interaction elements.

Sweeper can create room for additional messages, while Magnet can reduce unnecessary vertical gaps.

BPMN Business Process Diagrams

In a Business Process Diagram, activities, events, gateways, and connectors form a visual representation of a process.

When new activities are inserted or existing steps are removed, the diagram may need horizontal or vertical spacing adjustments.

Sweeper and Magnet help refine the arrangement without requiring each affected element to be moved individually.

The tools are diagram-editing utilities rather than BPMN or UML modeling elements. They do not introduce new business logic or change the meaning of a relationship. Their purpose is to help adjust the visual arrangement of the diagram.

Practical Workflow: Refine a Diagram with Sweeper and Magnet

A useful workflow is to make space first, perform the modeling change, and then compact the diagram if necessary.

Identify the area that needs adjustment

Review the diagram and identify where a new element needs to be inserted or where excessive whitespace has appeared.

Expand the space with Sweeper

If more room is required, activate Sweeper and drag horizontally or vertically across the relevant area.

Add or modify the diagram elements

Create the new shape, message, activity, or other model element. Establish the required relationships and update any relevant labels.

Compact the layout with Magnet

If the resulting diagram contains unnecessary gaps, activate Magnet and drag across the appropriate area to reduce the spacing.

Review the final presentation

Check that shapes and connectors remain readable and that labels do not overlap.

For diagrams intended for printing or stakeholder review, verify that the overall layout is balanced and that the important information is easy to follow.

Sweeper and Magnet Compared with Manual Shape Movement

Manual shape movement remains useful when a specific element needs to be repositioned.

Sweeper and Magnet address a different problem: adjusting the spacing of multiple diagram elements through a single drag operation.

Editing task Recommended approach
Move one specific shape Drag the shape manually
Create additional room across an area Use Sweeper
Reduce excessive spacing across an area Use Magnet
Adjust a precise individual position Move the element manually
Refine spacing in a sequence or process Use Sweeper or Magnet as appropriate

These tools complement the normal selection, movement, alignment, and layout operations available in Visual Paradigm.

Benefits of Sweeper and Magnet

  • Faster spacing adjustments: Change the spacing of affected diagram elements with a drag operation.
  • Less repetitive movement: Avoid manually repositioning multiple elements one by one.
  • Flexible horizontal and vertical adjustment: Expand or reduce spacing in either direction.
  • Convenient diagram refinement: Create room for new elements or remove unnecessary gaps.
  • Improved readability: Adjust crowded or overly spread-out diagrams.
  • Useful for evolving diagrams: Make layout changes as models are extended or revised.
  • Better presentation preparation: Compact diagrams when preparing them for review or printing.

Best Practices

Use Sweeper before adding elements to a crowded area

If a new message or activity needs to be inserted into a tightly packed section, create space first. This makes it easier to position the new element without disturbing nearby content.

Use Magnet after removing elements

When elements are deleted, the remaining layout may contain unnecessary gaps. Magnet can help compact the affected area.

Choose the correct drag direction

Use horizontal movement when the diagram needs more or less horizontal spacing, and vertical movement when the adjustment should affect vertical spacing.

Review connectors and labels after adjusting spacing

Although the tools help move diagram elements, users should still review the final layout. Ensure that connectors remain understandable and that labels do not overlap.

Apply localized adjustments

Focus the operation on the area that needs attention rather than making unnecessary changes to the entire diagram.

Use the tools as part of a broader layout workflow

Sweeper and Magnet are useful for spacing adjustments, but they do not replace all diagram-layout operations. Use manual movement, alignment, distribution, and automatic layout where those operations are more appropriate.

Frequently Asked Questions

What is Sweeper in Visual Paradigm Desktop?

Sweeper is a diagram-layout utility that increases the spacing between diagram elements. Users activate it from the diagram toolbar and drag horizontally or vertically across the diagram pane to move affected elements apart.

What is Magnet in Visual Paradigm Desktop?

Magnet is a diagram-layout utility that reduces the spacing between diagram elements. Users activate it from the diagram toolbar and drag across the diagram pane to bring affected elements closer together.

What is the difference between Sweeper and Magnet?

Sweeper expands spacing, while Magnet reduces spacing. Use Sweeper to create room for additional elements and Magnet to remove unnecessary gaps.

How do I use Sweeper?

Open a diagram, click the Sweeper button on the diagram toolbar, move the pointer to the area that needs more space, and drag horizontally or vertically while holding the mouse button.

How do I use Magnet?

Open a diagram, click the Magnet button on the diagram toolbar, move the pointer to the area that needs to be compacted, and drag horizontally or vertically while holding the mouse button.

Can Sweeper and Magnet be used horizontally and vertically?

Yes. Both tools support horizontal and vertical dragging across the diagram pane.

Are Sweeper and Magnet useful for Sequence Diagrams?

Yes. Visual Paradigm specifically identifies UML Sequence Diagrams as a useful application. Sweeper can create space for additional messages, while Magnet can reduce unnecessary vertical gaps.

Can I use Sweeper and Magnet in BPMN diagrams?

Visual Paradigm specifically highlights BPMN Business Process Diagrams as another useful application. The tools help adjust the spacing between process elements.

Do Sweeper and Magnet change the meaning of a diagram?

No. They are layout utilities. Their purpose is to adjust the visual spacing of diagram elements, not to change the semantics of UML relationships, BPMN flows, or other model elements.

Do Sweeper and Magnet replace automatic diagram layout?

No. They provide direct, localized spacing adjustments. Automatic diagram layout serves a different purpose by rearranging diagram elements according to layout algorithms and available options.

Are Sweeper and Magnet suitable for preparing diagrams for printing?

Yes. Magnet is particularly useful when a diagram contains excessive whitespace and needs to become more compact. Sweeper is useful when additional spacing is needed to improve readability.

Availability and Access

Sweeper and Magnet are diagram-editing utilities in Visual Paradigm Desktop.

The official user guide describes both tools as diagram toolbar operations. For current edition-specific availability, consult the official Visual Paradigm Editions Comparison and Pricing pages.

Refine Diagram Layout More Easily with Visual Paradigm

Diagrams evolve as requirements change, new elements are introduced, and existing structures are revised. Keeping their layouts readable is an important part of maintaining useful models.

Visual Paradigm Desktop’s Sweeper and Magnet tools provide two simple but practical ways to manage diagram spacing. Sweeper creates more room between elements, while Magnet reduces unnecessary gaps and makes a diagram more compact.

By using these tools together with the application’s other diagram-editing and layout capabilities, modelers can refine their diagrams more efficiently and keep them clear as projects develop.

Learn more in the official Sweeper and Magnet documentation.

Scroll to Top