C3D-0570 · Add storm codes to DI CB point group 260612 done
DI CB raw-description query += *GUTTER*, BOX COR*, *PIPEINV*, *RIDGED* (keeps existing *DI*). Update and list members.
C# payload
Autodesk.Civil.DatabaseServices.PointGroup pg=null;
foreach(ObjectId gid in CivilDoc.PointGroups){ var g=(Autodesk.Civil.DatabaseServices.PointGroup)Tx.GetObject(gid,OpenMode.ForRead); if(g.Name=="DI CB") pg=g; }
pg.UpgradeOpen();
var q=pg.GetQuery() as Autodesk.Civil.DatabaseServices.StandardPointGroupQuery;
if(q==null){ Log("DI CB is not a standard query group - nothing changed"); return; }
Log("before: rawDesc='"+q.IncludeRawDescriptions+"' fullDesc='"+q.IncludeFullDescriptions+"' numbers='"+q.IncludeNumbers+"' names='"+q.IncludeNames+"' count="+pg.PointsCount);
string want="*DI*,*GUTTER*,BOX COR*,*PIPEINV*,*RIDGED*";
var have=new System.Collections.Generic.List<string>(); foreach(var s in (q.IncludeRawDescriptions??"").Split(',')) if(s.Trim().Length>0) have.Add(s.Trim());
foreach(var s in want.Split(',')) if(!have.Exists(h=>string.Equals(h,s,StringComparison.OrdinalIgnoreCase))) have.Add(s);
q.IncludeRawDescriptions=string.Join(",",have);
pg.SetQuery(q); pg.Update();
var nums=new System.Collections.Generic.List<uint>(pg.GetPointNumbers()); nums.Sort();
Log("after: rawDesc='"+q.IncludeRawDescriptions+"' count="+pg.PointsCount);
Log("points: "+string.Join(",",nums));
Ed.Regen();
Result
Log
before: rawDesc='*DI*,*CB*' fullDesc='' numbers='' names='' count=8 after: rawDesc='*DI*,*CB*,*GUTTER*,BOX COR*,*PIPEINV*,*RIDGED*' count=23 points: 322,323,324,325,326,346,391,1077,1078,1079,1080,1082,1090,1091,1092,1093,1102,1104,1107,1108,1109,1110,1139
Notes
What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.
No notes yet.