private void resolveAllTargetIds() { Alignment alignment = AlignmentId.GetObject( OpenMode.ForRead) as Alignment; ObjectIdCollection offsetAlignments = alignment.GetChildOffsetAlignmentIds(); foreach (ObjectId offsetId in offsetAlignments) { resolveTargetIds(offsetId); } }