Article | 60000172 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 5/31/2007 |
Submitted by | Peter chanios |
Keywords |
//Add circle.
//Find the selection where the entities have to be added in order to draw their grips and add these objects there.
VectorDraw.Professional.vdCollections.vdSelection gripset;
string selsetname = "VDGRIPSET_" + vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.Handle.ToStringValue() + (vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.ActiveViewPort != null ? vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.ActiveViewPort.Handle.ToStringValue() : "");
gripset = vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.Document.Selections.FindName(selsetname);
if (gripset == null)
{
gripset = vdFramedControl1.BaseControl.ActiveDocument.ActiveLayOut.Document.Selections.Add(selsetname);
}
gripset.AddItem(cir,true, VectorDraw.Professional.vdCollections.vdSelection.AddItemCheck.RemoveInVisibleAndLockLayer);
vdFramedControl1.BaseControl.ActiveDocument.Redraw(true);