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

Stores all the needed data and operates RevitAPI.
Mostrar archivo Open project: AMEE/revit Class Usage Examples

Public Properties

Property Type Description
OpeningTypes List

Public Methods

Method 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

Method 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 method

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
return void

DoorSwingData() public method

constructor.
public DoorSwingData ( Autodesk app ) : System
app Autodesk Revit application
return System

UpdateDoorFamiliesOpeningFeature() public method

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

UpdateDoorsGeometry() public static method

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. ///
return void

UpdateDoorsInfo() public static method

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
return Autodesk.Revit.UI.Result

Property Details

OpeningTypes public_oe static_oe property

public static List OpeningTypes
return List