Hi,
the diameter is a parameter of the pipe. Sample :
double dblnewValue = 0.328084; //Value for 100mm using (Transaction trans = new Transaction(doc)) { trans.Start("modify Diameter"); _pipe.get_Parameter(BuiltInParameter.RBS_PIPE_DIAMETER_PARAM).Set(dblnewValue); trans.Commit(); }