08-05-2022
03:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-05-2022
03:24 AM
This is the function from my active project
This function will hides all occurrences in the "basView" except the "occ". Argument "asm" is referenced document of "baseView"
private static void HideOtherOccurrences(AssemblyDocument asm, ComponentOccurrence occ, DrawingView baseView)
{
Point2d position = baseView.Position;
foreach (ComponentOccurrence occurrence in asm.ComponentDefinition.Occurrences)
{
baseView.SetVisibility(occurrence, occurrence == occ);
}
baseView.Position = position;
}