Document.LoadFamilySymbol(String, String, FamilySymbol)
Method
Description:
Loads only the specified family type/symbol from a family file into the document and provides a reference to the loaded family symbol.
Loads only the specified family type/symbol from a family file into the document and provides a reference to the loaded family symbol.
Remarks:
This function supports loading of types/symbols stored in the family, or those available in the family Type Catalog file.
This function supports loading of types/symbols stored in the family, or those available in the family Type Catalog file.
Parameters
Parameter | Type | Description |
---|---|---|
filename | String | The fully qualified filename of the Family file, usually ending in .rfa. |
name | String | The name of the type/symbol to be loaded, such as "W11x14". |
symbol | FamilySymbol | A reference to the family symbol that was loaded if successful, otherwise <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST82D35F3B_3"></span></span>. |
Return Value
Type | Description |
---|---|
Boolean | True if the family type/symbol was loaded successfully into the project, otherwise False. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when filename or name isor empty. |