70000408 Grips not to be cleared when deactivate a layout or a viewport

Article 70000408
Type Wish
Product Engine
Version 7003
Date Added 4/22/2015
Fixed (4/22/2015)
Submitted by Alessio

Summary

Option to control if the grips will be cleared when deactivate a layout or a viewport

Solution

Added in version 7004.0.3
Grips are not cleared when deactivate a layout or a viewport
All viewports that are in the same layout has the same grip selection.
If you are using Selections.FindName to get the active grip selection you must use the following code:

vdSelection gripset = vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.Document.Selections.FindName("VDGRIPSET_" + vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.Handle.ToStringValue() + (vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.ActiveViewPort != null l ? "VIEWPORT" : ""));

Send comments on this topic.