foreach (ComApi.InwOclClashTest clashTest in clashTests)
{
if (clashTest == null) continue;
foreach (ComApi.InwOclTestResult2 clash in clashTest.results())
{
ComApi.InwOpView oSv = oState.ObjectFactory(ComApi.nwEObjectType.eObjectType_nwOpView);
oSv.name = clash.name;
oSv.anonview.ViewPoint = clash.GetSuitableViewPoint().Copy();
#region Вот так пытался скопировать комментарии, но не работает
foreach (ComApi.InwOpComment3 comment in clash.Comments())
{
if (comment != null)
{
oSv.Comments().Add(comment);
}
}
#endregion
oState.SavedViews().Add(oSv);
}
}