title: How to get Type Parameters of structural beam
body: <p>Can any one tell me how to get Type Parameters of structural beam? Parameters like section height, width, area?</p>
  
  <p>I suppose I should start something like this:</p>
  
  <pre><code>    Selection sel = uidoc.Selection;
  
      Reference pickedRef = null;
  
      pickedRef = sel.PickObject(ObjectType.Element, "Please select beam");
  
      Element e = doc.GetElement(pickedRef);
  
      ElementType type = doc.GetElement(e.GetTypeId()) as ElementType;
  
      BuiltInParameter height = BuiltInParameter.FAMILY_HEIGHT_PARAM;
  
      Parameter h = type.get_Parameter(height);
  
      //OR
      Parameter hh = type.LookupParameter("Height");
  
      //Then don't know what to do
      double h1 = h.AsDouble(); //Or what?
  </code></pre>
  
  <p>But I don't get required type parameters, I get null exception.</p>
  
  <p>Can anyone tell me what I am doing wrong? Am I using wrong BuiltInParamater, or something else?</p>
  
  <p>Thanks!
  Milos</p>