Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doe = detail.GetObjects(new Type[] { typeof(tsd.Part)});
- int n = doe.GetSize();
- int n0 = 0;
- while(doe.MoveNext())
- {
- tsd.Part part = doe.Current as tsd.Part;
- tsd.DrawingObjectEnumerator marks = part.GetRelatedObjects(new Type[] { typeof(tsd.Mark) });
- while(marks.MoveNext())
- {
- System.Collections.IEnumerator en = (marks.Current as tsd.Mark).Attributes.Content.GetEnumerator();
- while (en.MoveNext())
- {
- if (en.Current is tsd.PropertyElement)
- {
- tsd.PropertyElement po = en.Current as tsd.PropertyElement;
- if (po.Name == "ASSEMBLY_POS")
- {
- n0++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement