Revit 2026 Visual Studio アドインテンプレートと新しい RevitLookup ツール

今回は、Revit アドインを開発する上で便利なツールをご紹介いたします。

Visual Studio Add-in Template

Revit アドイン開発に対応した Visual Studio のプロジェクトテンプレートが、弊社エンジニアによりリリースされております。

このプロジェクトテンプレートをインストールすることで、Visual Studio の新規プロジェクトの作成から、プロジェクトの初期設定やアドインマニフェストファイル、スケルトンコードを自動生成することができます。

Visual Studio プロジェクトを作成後、デバッグモードで実行すると、Revit が自動的に起動し、アドインがロードされ、外部コマンドまたは外部アプリケーションをデバッグすることができます。

Screenshot of a C# code editor displaying a command class for a Revit 2026 add-in, with visible namespaces, method definitions, and a solution explorer on the right.

Revit 2026 対応版については、下記のブログ記事でビルド済みの ZIP ファイルを公開致しました。

Screenshot of a software interface displaying project templates for Revit 2026 and Revit 2025 add-ins, with options for .NET projects and React applications.


新しい RevitLookup ツール

RevitLookup ツールは、Revit の UI 上から、アプリケーション、ドキュメント、ファミリ、ジオメトリ等の、各オブジェクトのデータベース構造を確認できるアドインです。

GitHub のオープンソースプロジェクトとなっており、2022年からは、サードパーティーの開発者の方(Nice3point氏)が、コントリビューターとなっておりましたが、コミュニティ主導のプロジェクトとして、新たに Looup Foundation に移管されました。

Screenshot of the GitHub page for 'Lookup Foundation', showcasing tools for exploring .NET objects. The page includes sections for popular repositories like 'RevitLookup', 'LookupEngine', 'DependencyTools', and 'LookupEngine.UI', along with details on programming languages used.

Revit 2024 バージョンでは、RevitLookup ツールのコード全体が完全にスクラッチで書き直され、ユーザーインターフェイスが再設計されました。
また、Revit 2025 バージョンでは、.NET 8 への移行に伴い、ソースコードの移植も実施されました。
さらに、この新しい RevitLookup ツールの Revit 2021 – Revit 2023 バージョン版もリリース済みです。

Screenshot of Autodesk Revit 2023 displaying a 3D model view and the RevitLookup panel with detailed element properties.

なお、旧 RevitLookup ツール(Revit 2023 バージョンまでサポート)については、下記の記事にてご案内しております。

新しい RevitLookup ツールの更新内容と新機能の詳細は、下記のブログ記事に掲載されております。他の記事でもマイナーアップデートの詳細をご確認いただけます。

 

ここでは、主な変更点と新機能に絞ってご紹介いたします。Revit 2026 版リリースに伴うアップデートの詳細は、こちらをご参照ください。

UI の刷新

全く新しいユーザーインターフェースで再構築され、テーマの選択、コンテキストメニュー、ツールチップなども更新されました。

Settings interface of RevitLookup displaying user interface options such as theme, background effect, smooth navigation, hardware graphics acceleration, restore window size, and interaction panel in a Modify tab.

ダッシュボード

Dashboard から、新しい様々な機能を利用できるようになりました。

RevitLookup software dashboard displaying various workspace options such as Active View, Database, Interaction tools including Selection and Linked Elements, Maintenance features like Component Manager, and Registry items including Updaters and Schemas.

新しいコマンドの追加

  • Snoop Point
  • Snoop Sub-Element
  • Snoop UI Application
A screenshot of the RevitLookup dashboard showing the workspace and interaction options, including Active view, Active document, Database, and selection tools like Point and Sub-element.

要素の削除

RevitLookup ツールから要素を削除できるようになりました。

Screenshot of the RevitLookup tool displaying the 'Snoop summary' for a FamilyInstance, with options to copy, help, show element, select element, and delete highlighted.

要素パラメータ値の編集

RevitLookup ツールから要素のパラメータ値を編集できるようになりました。String、Double、Int、ElementId がサポートされています。

Screenshot of the RevitLookup tool displaying a snoop summary for a parameter, showing various details such as Member, Value, and a warning that the parameter is not shared.

要素に保存されている拡張ストレージのカスタムデータの確認

Element.GetEntity()メソッドに移動しました。

メモリ診断

各要素に割り当てられたマネージド メモリのサイズを表示できます。

A screenshot of the RevitLookup tool displaying the Snoop summary section, showing various data fields such as Member, Element, and Value in a structured format, with a highlighted 'Memory' column.

Component Manager

AdWindows.dll を通じて、Revit のリボン  UI がどのように構築されているかを確認できます。

Screenshot of RevitLookup tool with 'Snoop summary' displaying ComponentManager and Ribbon details, including properties and values for RevitRibbonControl and RibbonTab.

Performance Adviser

ドキュメントのパフォーマンスの問題を調査します。

Registry

拡張ストレージのスキーマ、ダイナミックアップデータ、サービスを確認できます。

Units

ビルトインパラメータ、ビルトインカテゴリ、APS(旧 Forge)のスキーマ(単位)を確認できます。

イベントモニター

Revit で検知可能な全てのイベントを追跡します。
RevitAPI.dll と RevitAPIUI.dll ライブラリに対応しています。

Event monitor interface in RevitLookup displaying various events with timestamps and corresponding values for RevitAPIEventArgs.

プロジェクト内のビジュアル検索

  • 要素を表示
  • 面を表示(Revit 2023~)
  • ソリッドを表示(Revit 2023~)
  • エッジを表示(Revit 2023~)

OTA アップデート

RevitLookup アップデートはプラグインから直接利用できるようになりました。

Screenshot of the RevitLookup application showing version information, including an available update notification with options to view release notes and download the update.


ぜひ Revit アドイン開発にご活用ください。

By Ryuji Ogasawara

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading