I managed to regenerate this warning by adding these lines in the sdk Sample "Reinforcement" and "ColumnFramReinMaker.cs" class constructor ( line 183) as belwo:
public ColumnFramReinMaker(ExternalCommandData commandData, FamilyInstance hostObject)
: base(commandData, hostObject)
{
...
//create a ColumnGeometrySupport instance
m_geometry = new ColumnGeometrySupport(hostObject, geoOptions);
// The following lines will create rebar container:
ElementId m_containertype = RebarContainerType.CreateDefaultRebarContainerType(m_revitDoc);
RebarContainer m_container = RebarContainer.Create(m_revitDoc, m_hostObject, m_containertype);
}
If there is any thing that you can think of so I can avoid creating the container outside of its host I would appreciate letting me know.
Is there any property that can be set for the rebar container class to keep it withing its host?