Revit API: Rebar Container is placed completely outside of its host
<p>When I try to create a rebar container I get this error inside Revit after running:</p>

<blockquote>
  <p>Warning - can be ignored</p>
  
  <p>"Rebar Container is placed completely outside of its host."</p>
</blockquote>

<p>I don't know how should I avoid this error. Here is the code:</p>

<pre><code>containertype = RebarContainerType.
                GetOrCreateRebarContainerType(Doc, "myContainer");
container = RebarContainer.Create(Doc, hostObject, containertype);
</code></pre>