title: using visio to automate drawing diagram with c# - can't set custom properties
body: <p>I have data I am grabbing from a database, and I want to use those values to populate properties on shapes on a visio diagram.  I open my own template, and display shapes on the sheet with no problem.  My server icon has custom properties such as "manufacturer", "network", etc.  When I print out the custom properties for each shape, I get the following output:</p>
  
  <p>Shape = server Label = Manufacturer Value = 0</p>
  
  <p>etc.  This is all correct since I haven't set any values yet.  When I go to set the values, using the code in the Visio 2003 SDK (SettingACustomProperty.cs) I get an error that "this shape does not have a custom property with the universal name of Manufacturer" - yet printing out the custom properties clearly shows it does (as does looking at the shapeSheet once the shape is drawn in Visio). I've inserted to how I call SettingACustomProperty.  Can someone help me figure out what I need to do to insert values into my custom properties on a shape?</p>
  
  <p>Here is how I am calling the code (for testing purposes I have inserted strings myself):</p>
  
  <pre><code>  string keyword = "Manufacturer";
    string manuValue = "\"Dell\"";
  
    string three = SettingACustomProperty.SetCustomPropertyFormula(visioStarShape, keyword, manuValue);
  </code></pre>