RVTDocs.com

Application.NewFamilyDocument

Method
Description:
New family document, including family, titleblock, and annotation symbol
Remarks:
This command corresponds to File->New->Family.../TitleBlock.../Annotation Symbol....
Syntax
public virtual Document NewFamilyDocument(
	string templateFileName
)
Examples
// create a new family document using Generic Model.rft template
string templateFileName = @"C:\Documents and Settings\All Users\Application Data\Autodesk\RST 2010\Imperial Templates\Generic Model.rft";
Document familyDocument = application.NewFamilyDocument(templateFileName);
if (null == familyDocument)
{
    throw new Exception("Cannot open family document");
}
Parameters
Parameter Type Description
templateFileName String The template file name.
Return Value
Exceptions
Exception Condition
ArgumentException If 'templateFileName' isor an empty string.
InvalidOperationException If the new family document cannot be created.