C# Class Revit.SDK.Samples.DoorSwing.CS.DoorSwingData

Stores all the needed data and operates RevitAPI.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Свойство Type Description
OpeningTypes List

Méthodes publiques

Méthode Description
DeleteTempDoorInstances ( ) : void

Delete temporarily created door instances which are used to retrieve geometry. Retrieved geometry will shown to users. So they can initialize door opening parameter more visually.

DoorSwingData ( Autodesk app ) : System

constructor.

UpdateDoorFamiliesOpeningFeature ( ) : void

Do Door symbols' Opening set based on family's basic geometry and country's standard.

UpdateDoorsGeometry ( System.Windows.Forms.Document doc, bool onlyUpdateSelect ) : void

Doors related rooms: update doors' geometry according to its To/From room information.

UpdateDoorsInfo ( System.Windows.Forms.Document doc, bool onlyUpdateSelect, bool showUpdateResultMessage, string &message ) : Autodesk.Revit.UI.Result

update door instances information: Left/Right information, related rooms information.

Private Methods

Méthode Description
AssignedAllRooms ( System.Windows.Forms.Document doc ) : bool

Iterate through plan topology to determine if all plan circuits have assigned rooms.

DoorSwingData ( ) : System

fill OpeningTypes static member variable.

PrepareDoorFamilies ( ) : void

get all the door families in the project. And store them in two lists separately based on opening parameter.

UpdateFromToRoomofOneDoor ( FamilyInstance door, bool updateGeo ) : void

Doors related rooms: update one door's To/From room information or geometry.

UpdateInternalDoorFlagFeatureofOneDoor ( FamilyInstance door ) : void

Update one door's internalDoor flag which indicates the door is internal door or external door.

UpdateOpeningFeatureOfOneDoor ( FamilyInstance door ) : Autodesk.Revit.UI.Result

Update doors' Left/Right information.

Method Details

DeleteTempDoorInstances() public méthode

Delete temporarily created door instances which are used to retrieve geometry. Retrieved geometry will shown to users. So they can initialize door opening parameter more visually.
public DeleteTempDoorInstances ( ) : void
Résultat void

DoorSwingData() public méthode

constructor.
public DoorSwingData ( Autodesk app ) : System
app Autodesk Revit application
Résultat System

UpdateDoorFamiliesOpeningFeature() public méthode

Do Door symbols' Opening set based on family's basic geometry and country's standard.
public UpdateDoorFamiliesOpeningFeature ( ) : void
Résultat void

UpdateDoorsGeometry() public static méthode

Doors related rooms: update doors' geometry according to its To/From room information.
public static UpdateDoorsGeometry ( System.Windows.Forms.Document doc, bool onlyUpdateSelect ) : void
doc System.Windows.Forms.Document Revit project.
onlyUpdateSelect bool /// true means only update selected doors' information else false. ///
Résultat void

UpdateDoorsInfo() public static méthode

update door instances information: Left/Right information, related rooms information.
public static UpdateDoorsInfo ( System.Windows.Forms.Document doc, bool onlyUpdateSelect, bool showUpdateResultMessage, string &message ) : Autodesk.Revit.UI.Result
doc System.Windows.Forms.Document Revit project.
onlyUpdateSelect bool /// true means only update selected doors' information otherwise false. ///
showUpdateResultMessage bool /// this parameter is used for invoking this method in Application's events (document save and document saveAs). /// update door infos in Application level events should not show unnecessary messageBox. ///
message string
Résultat Autodesk.Revit.UI.Result

Property Details

OpeningTypes public_oe static_oe property

public static List OpeningTypes
Résultat List