title: Placing a custom mass family instance in a model using Revit API
body: <p>I created a custom Mass family, which is a simple cylinder. I'm trying to place it on a specific point on a specific level using the NewFamilyInstance method.</p>
  
  <p>This is the code I'm using to place the instance: </p>
  
  <pre><code>doc.Create.NewFamilyInstance(new XYZ(0, 0, 0), symbol, 
      ele.Document.GetElement(ele.LevelId), 
      Autodesk.Revit.DB.Structure.StructuralType.UnknownFraming);
  </code></pre>
  
  <p>The problem is that the instance is placed always at level 1, no matter what the input level.
  I noticed that the input level appears on the instance's Host constraints. Please refer to the image below:</p>
  
  <p><a href="https://i.stack.imgur.com/T6mR1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T6mR1.png" alt="screenshot"></a></p>
  
  <p>Would highly appreciate it if anyone points out my mistake. </p>
  
  <p>Cheers! </p>