Use IFeatureManager::CreateDefinition
to create a new
LibraryFeatureData
object.
Initialize the library feature data object using
ILibraryFeatureData::Initialize
and a library feature.
NOTE: This method initializes and opens the last active configuration.
If you do not want to apply the library feature
to the last active configuration:
Get all of the configurations using ILibraryFeatureData::GetAllConfigurationNames.
Set the configuration name using ILibraryFeatureData::ConfigurationName
to which to apply the library feature.
NOTE: This step re-initializes the library feature data
object.
Set whether to link this library feature with
the original library feature using ILibraryFeatureData::LinkToLibraryPart.
Get the type of references required using ILibraryFeatureData::GetReferences.
Get the locating dimension names and values using
ILibraryFeatureData::GetDimensions.
Select where to place the library feature using
IModelDocExtension::SelectByID2.
Create the library feature using IFeatureManager::CreateFeature.