Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The models I have marked in the image are not included in the HatchRegions product tree. What could be the reason? Can you help me?
for (int i = 0; i < sectionDrawingViewRight.Count; i++)
{
if (sectionDrawingViewRight[i].HatchRegions.Count > 0)
{
for (int x = 1; x < sectionDrawingViewRight[i].HatchRegions.Count; x++)
{
DrawingViewHatchRegion upperDrawingViewHatchRegion = sectionDrawingViewRight[i].HatchRegions[x];
AssemblyDocument upperAssemblyDocument = ((AssemblyDocument)((DocumentDescriptor)((dynamic)((SurfaceBody)upperDrawingViewHatchRegion.SurfaceBody).Parent).ReferencedDocumentDescriptor).Parent);
Console.WriteLine(((dynamic)((SurfaceBody)upperDrawingViewHatchRegion.SurfaceBody).Parent)._DisplayName+" : "+i+"- x"+x);
DrawingViewHatchRegion netherDrawingViewHatchRegion = sectionDrawingViewRight[i].HatchRegions[x + 1];
AssemblyDocument netherAssemblyDocument = ((AssemblyDocument)((DocumentDescriptor)((dynamic)((SurfaceBody)netherDrawingViewHatchRegion.SurfaceBody).Parent).ReferencedDocumentDescriptor).Parent);
Console.WriteLine(((dynamic)((SurfaceBody)netherDrawingViewHatchRegion.SurfaceBody).Parent)._DisplayName + " : " + i + "- x" + (x + 1));
}
}
}
Solved! Go to Solution.