VietPer.

A .NET publication · published by VietPer

← Back to VP_RevitAPI

Update active legend

Update the Excel legend link for the active view or the selection.

Ribbon location:
VP_LAYOUT > Excel Link
Command:
ExcelLegendUpdateActive

1. Purpose

Refreshes the linked Excel content for the open legend (or the selected legend/viewport) with no dialog at all. Use it daily: Excel numbers change, one click, and the legend on the drawing follows.

2. Quick video (≤ 2 minutes)

[Video in production — follow the steps below for now.]

3. Steps

  1. Open the legend to refresh — or select 1 legend / 1 legend viewport right on the sheet. [image 01: legend open for refresh]
  2. Click Update active legend in the VP_LAYOUT tab, Excel Link panel — no dialog appears.
  3. The tool checks the legend's Excel link, updates it, and reports "Đã hoàn tất cập nhật Active." — read the report and you are done. [image 02: update-finished report]

4. Real-world example

A pipe quantity table links from the pricing file, which reprices every morning. Open the quantity legend on sheet A1-09, press Update active legend — ten seconds later the drawing matches this morning's Excel, in time for the afternoon issue print.

5. Common errors

Symptom (tool message, Vietnamese)Fix
"Không tìm thấy Legend hợp lệ từ ActiveView hoặc Selection."Standing in a non-legend view with nothing selected — open a legend or select one/a viewport, then rerun
Error report with exception textSource Excel deleted/moved or the named range renamed — relink from scratch in Excel legend sync

6. See also