Professional Documents
Culture Documents
Guide To Placing Family Instances With The Api
Guide To Placing Family Instances With The Api
using the API. Typically these instances are created using one of the eight overload methods of
Autodesk.Revit.Creation.Document called “NewFamilyInstance”. The choice of which overload to
use depends not only on the category of the instance, but also other characteristics of the
placement like whether it should be hosted, placed relative to a reference level, or placed directly
on a particular face. The details are included in Table 1.
1
The structural instance will be of zero-length after creation. Extend it by setting its curve
(FamilyInstance.Location as LocationCurve) using LocationCurve.Curve property.
Instances of some family types are better created through methods other than
Autodesk.Revit.Creation.Document.NewFamilyInstance. These are listed in Table 2.