Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1.  doe = detail.GetObjects(new Type[] { typeof(tsd.Part)});
  2.  
  3.  
  4.             int n = doe.GetSize();
  5.             int n0 = 0;
  6.  
  7.             while(doe.MoveNext())
  8.             {
  9.                 tsd.Part part = doe.Current as tsd.Part;
  10.                 tsd.DrawingObjectEnumerator marks = part.GetRelatedObjects(new Type[] { typeof(tsd.Mark) });
  11.                 while(marks.MoveNext())
  12.                 {
  13.                     System.Collections.IEnumerator en = (marks.Current as tsd.Mark).Attributes.Content.GetEnumerator();
  14.                     while (en.MoveNext())
  15.                     {
  16.                         if (en.Current is tsd.PropertyElement)
  17.                         {
  18.                             tsd.PropertyElement po = en.Current as tsd.PropertyElement;
  19.                             if (po.Name == "ASSEMBLY_POS")
  20.                             {
  21.                                 n0++;
  22.                             }
  23.                         }
  24.                     }
  25.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement