kuklev9797's picture
download
raw
1.44 kB
Application: ModelessForm_IdlingEvent
Revit Platform: All
Revit Version: 2013.0
First Released For: 2013.0
Programming Language: C#
Skill Level: Medium
Category: Basics
Type: ExternalCommand and ExternalApplication
Subject: Show Modeless Form (Idling Event)
Summary:
This sample shows how to utilize the Idling event in order to communicate with the Revit API from an external, modeless dialog.
Classes:
Autodesk.Revit.DB;
Autodesk.Revit.UI;
Autodesk.Revit.UI.Events;
Project Files:
Command.cs
It contains the class Command which inherits from interface IExternalCommand and implements the Execute method.
Application.cs
It contains the class Command which inherits from interface IExternalApplication and implements its methods.
Request.cs
The class around a variable holding the current request.
RequestHandler.cs
The class with methods to execute requests made by the dialog user.
ModelessForm.cs
The class of our modeless dialog.
Description:
This sample shows how to utilize the Idling event in order to communicate with the Revit API from an external, modeless dialog.
Instructions:
1.
Start Revit and create a new document
2.
Create a few walls and add some doors to it - stay in a floor-plan view
3.
Start the AddIn command - " Show Modeless Form (Idling Event)
4.
When the dialog appears, select some of the doors
5.
Use the command buttons in the modeless dialog to manipulate the doors

Xet Storage Details

Size:
1.44 kB
·
Xet hash:
fcf46ba8abff837f610d1b58fd793bff7c2df907d3a6cccad3687c0b34c4c320

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.