Revit 2025.3 API
ApplicationNew |
New family document, including family, titleblock, and annotation symbol
Namespace: Autodesk.Revit.ApplicationServices
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public virtual Document NewFamilyDocument( string templateFileName )
Public Overridable Function NewFamilyDocument ( templateFileName As String ) As Document
public: virtual Document^ NewFamilyDocument( String^ templateFileName )
abstract NewFamilyDocument : templateFileName : string -> Document override NewFamilyDocument : templateFileName : string -> Document
Parameters
- templateFileName String
- The template file name.
Return Value
Document| Exception | Condition |
|---|---|
| ArgumentException | If 'templateFileName' is or an empty string. |
| InvalidOperationException | If the new family document cannot be created. |
This command corresponds to File->New->Family.../TitleBlock.../Annotation Symbol....
See Also