DocumentEditFamily Method |
Gets the document of a loaded family to edit.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntaxpublic Document EditFamily(
Family loadedFamily
)
Public Function EditFamily (
loadedFamily As Family
) As Document
public:
Document^ EditFamily(
Family^ loadedFamily
)
member EditFamily :
loadedFamily : Family -> Document
Parameters
- loadedFamily Family
- The loaded family in current document.
Return Value
DocumentReference of the document of the family.
Exceptions
RemarksThis creates an independent copy of the family for editing.
To apply the changes back to the family stored in the document, use the LoadFamily overload
accepting
IFamilyLoadOptions.
This method may not be called if the document is currently modifiable (has an open transaction)
or is in a read-only state. The method may not be called during dynamic updates. To test the
document's current status, check the values of IsModifiable and IsReadOnly properties.
See Also