June 28, 2010

Set Simio object name from design add-in

Just a short entry today! I was confronted with the question how one can change the default name like "Server1" that Simio uses programatically. The simple answer is:

ServerObject.ObjectName = "MyServer";

I tried different things like

ServerObject.Properties["Name"].Value = "MyServer";

but obviously the name of the object is not a property, or at least not with the name "Name". I hope that helped some of us!